Skip to content

Commit 97266cb

Browse files
authored
Merge pull request #14 from aligent/release/1.0.0
Release/1.0.0 * Bump yarn version * Bump minor/patch dependencies * Rebuild references files from latest source schemas
2 parents 70632c4 + 77ac5b1 commit 97266cb

32 files changed

+19684
-33
lines changed

docs/changelog/1.0.0.md

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
# Interface Change Summary: 0.0.1-alpha.3
2+
3+
## Modified files
4+
### `catalog/brands_catalog.v3.ts`
5+
6+
components.parameters:
7+
```diff
8+
+ readonly DirectionQuery: "asc" | "desc";
9+
```
10+
11+
operations.getBrands.parameters.query:
12+
```diff
13+
+ readonly direction?: components["parameters"]["DirectionQuery"];
14+
```
15+
16+
### `pages.v3.ts`
17+
18+
components.schemas.pageMeta:
19+
```diff
20+
- readonly meta_keywords: string;
21+
+ readonly meta_keywords: string | null;
22+
- readonly meta_description: string;
23+
+ readonly meta_description: string | null;
24+
```
25+
26+
components.schemas.searchKeywords:
27+
```diff
28+
- readonly search_keywords: string;
29+
+ readonly search_keywords: string | null;
30+
```
31+
32+
### `promotions.v3.ts`
33+
34+
components.schemas:
35+
```diff
36+
+ readonly CreatedFrom: "react_ui" | "legacy_ui" | "api";
37+
- readonly PromotionCoupon: components["schemas"]["PromotionBase"] & {
38+
+ readonly PatchCouponPromotion: components["schemas"]["PromotionBase"] & {
39+
- readonly PromotionAutomatic: components["schemas"]["PromotionBase"];
40+
+ readonly DraftCouponPromotion: components["schemas"]["PromotionBase"] & {
41+
```
42+
43+
components.schemas.PromotionBase:
44+
```diff
45+
- readonly name: string;
46+
+ readonly name?: string;
47+
- readonly rules: readonly components["schemas"]["Rule"][];
48+
+ readonly rules?: readonly components["schemas"]["Rule"][];
49+
```
50+
51+
components.schemas.PatchCouponPromotion:
52+
```diff
53+
+ readonly codes?: components["schemas"]["CouponCode"];
54+
```
55+
56+
components.schemas.DraftCouponPromotion:
57+
```diff
58+
+ readonly codes?: components["schemas"]["CouponCode"];
59+
+ readonly coupon_overrides_automatic_when_offering_higher_discounts: boolean;
60+
+ readonly redemption_type: "COUPON";
61+
+ };
62+
+ readonly SavedCouponPromotion: WithRequired<components["schemas"]["PromotionBase"], "id" | "name" | "channels" | "customer" | "rules" | "notifications" | "stop" | "currency_code" | "redemption_type" | "current_uses" | "start_date" | "status" | "can_be_used_with_other_promotions"> & {
63+
+ readonly id: number;
64+
+ readonly created_from: components["schemas"]["CreatedFrom"];
65+
+ readonly codes?: components["schemas"]["CouponCode"];
66+
+ readonly coupon_overrides_automatic_when_offering_higher_discounts: boolean;
67+
+ readonly redemption_type: "COUPON";
68+
+ readonly multiple_codes?: {
69+
+ readonly has_multiple_codes: boolean;
70+
+ };
71+
+ };
72+
+ readonly PatchAutomaticPromotion: components["schemas"]["PromotionBase"];
73+
+ readonly DraftAutomaticPromotion: WithRequired<components["schemas"]["PromotionBase"], "redemption_type" | "name" | "rules"> & {
74+
+ readonly redemption_type: "AUTOMATIC";
75+
+ };
76+
+ readonly SavedAutomaticPromotion: WithRequired<components["schemas"]["PromotionBase"], "id" | "name" | "channels" | "customer" | "rules" | "notifications" | "stop" | "currency_code" | "redemption_type" | "current_uses" | "start_date" | "status" | "can_be_used_with_other_promotions"> & {
77+
+ readonly redemption_type: "AUTOMATIC";
78+
+ readonly id: number;
79+
+ readonly created_from: components["schemas"]["CreatedFrom"];
80+
+ };
81+
```
82+
83+
components.schemas.CollectionMeta:
84+
```diff
85+
- readonly pagination?: components["schemas"]["Pagination"];
86+
+ readonly pagination: components["schemas"]["Pagination"];
87+
```
88+
89+
components.schemas.Pagination:
90+
```diff
91+
- readonly total?: number;
92+
+ readonly total: number;
93+
- readonly count?: number;
94+
+ readonly count: number;
95+
- readonly per_page?: number;
96+
+ readonly per_page: number;
97+
- readonly current_page?: number;
98+
+ readonly current_page: number;
99+
- readonly total_pages?: number;
100+
+ readonly total_pages: number;
101+
- readonly links?: {
102+
+ readonly links: {
103+
```
104+
105+
components.schemas.CouponCode:
106+
```diff
107+
- readonly id?: number;
108+
+ readonly id: number;
109+
- readonly current_uses?: number;
110+
+ readonly current_uses: number;
111+
- readonly created?: string;
112+
+ readonly created: string;
113+
```
114+
115+
components.responses.PromotionsCollectionResponse.content."application/json":
116+
```diff
117+
- readonly data?: readonly (components["schemas"]["PromotionAutomatic"] | components["schemas"]["PromotionCoupon"])[];
118+
+ readonly data: readonly (components["schemas"]["SavedAutomaticPromotion"] | components["schemas"]["SavedCouponPromotion"])[];
119+
- readonly meta?: components["schemas"]["CollectionMeta"];
120+
+ readonly meta: components["schemas"]["CollectionMeta"];
121+
```
122+
123+
components.responses.PromotionsResponse.content."application/json":
124+
```diff
125+
- readonly data?: components["schemas"]["PromotionCoupon"] | components["schemas"]["PromotionAutomatic"];
126+
+ readonly data?: components["schemas"]["SavedCouponPromotion"] | components["schemas"]["SavedAutomaticPromotion"];
127+
```
128+
129+
components.parameters:
130+
```diff
131+
+ readonly Query: string;
132+
```
133+
134+
operations.getPromotions.parameters.query:
135+
```diff
136+
+ readonly query?: components["parameters"]["Query"];
137+
```
138+
139+
operations.createPromotion.requestBody.content:
140+
```diff
141+
- readonly "application/json": components["schemas"]["PromotionCoupon"] | components["schemas"]["PromotionAutomatic"];
142+
+ readonly "application/json": components["schemas"]["DraftCouponPromotion"] | components["schemas"]["DraftAutomaticPromotion"];
143+
```
144+
145+
operations.updatePromotion.requestBody.content:
146+
```diff
147+
- readonly "application/json": components["schemas"]["PromotionCoupon"] | components["schemas"]["PromotionAutomatic"];
148+
+ readonly "application/json": components["schemas"]["PatchCouponPromotion"] | components["schemas"]["PatchAutomaticPromotion"];
149+
```
150+
151+
:
152+
```diff
153+
+ type WithRequired<T, K extends keyof T> = T & {
154+
+ [P in K]-?: T[P];
155+
+ };
156+
```
157+

eslint.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { eslintConfigs } from '@aligent/ts-code-standards';
2+
import { defineConfig } from 'eslint/config';
23

3-
export default [
4+
export default defineConfig([
45
...eslintConfigs.base,
5-
{ ignores: ['**/*.{js,mjs}', '**/generated', '**/dist'] },
6-
];
6+
{
7+
ignores: ['**/*.{js,mjs}', '**/generated', '**/.tmp-generate', '**/dist'],
8+
},
9+
]);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aligent/bigcommerce-api",
3-
"version": "0.0.1-alpha.3",
3+
"version": "1.0.0",
44
"type": "module",
55
"scripts": {
66
"test": "tsd",
@@ -66,5 +66,5 @@
6666
"node-fetch": "^3.3.2",
6767
"query-string": "^9.1.1"
6868
},
69-
"packageManager": "[email protected].1+sha512.f95ce356460e05be48d66401c1ae64ef84d163dd689964962c6888a9810865e39097a5e9de748876c2e0bf89b232d583c33982773e9903ae7a76257270986538"
69+
"packageManager": "[email protected].2"
7070
}

src/internal/reference/generated/carts.sf.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,11 @@ export interface components {
786786
readonly [name: string]: unknown;
787787
};
788788
content: {
789+
/** @example {
790+
* "status": 409,
791+
* "title": "The request cannot be processed due to a possible conflict. Please review the changes and try again.",
792+
* "type": "https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes"
793+
* } */
789794
readonly "application/json": {
790795
readonly status?: number;
791796
readonly title?: string;

src/internal/reference/generated/carts.v3.ts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,11 @@ export interface components {
20472047
readonly [name: string]: unknown;
20482048
};
20492049
content: {
2050+
/** @example {
2051+
* "status": 409,
2052+
* "title": "The request cannot be processed due to a possible conflict. Please review the changes and try again.",
2053+
* "type": "https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes"
2054+
* } */
20502055
readonly "application/json": components["schemas"]["ErrorResponse"];
20512056
};
20522057
};
@@ -2451,6 +2456,12 @@ export interface operations {
24512456
readonly [name: string]: unknown;
24522457
};
24532458
content: {
2459+
/** @example {
2460+
* "status": 400,
2461+
* "title": "Input is invalid",
2462+
* "type": "https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes",
2463+
* "detail": "Syntax error"
2464+
* } */
24542465
readonly "application/json": {
24552466
readonly status?: number;
24562467
readonly title?: string;
@@ -2563,6 +2574,12 @@ export interface operations {
25632574
readonly [name: string]: unknown;
25642575
};
25652576
content: {
2577+
/** @example {
2578+
* "status": 400,
2579+
* "title": "Input is invalid",
2580+
* "type": "https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes",
2581+
* "detail": "Syntax error"
2582+
* } */
25662583
readonly "application/json": {
25672584
readonly status?: number;
25682585
readonly title?: string;
@@ -2666,6 +2683,21 @@ export interface operations {
26662683
readonly [name: string]: unknown;
26672684
};
26682685
content: {
2686+
/** @example {
2687+
* "data": {
2688+
* "id": "24",
2689+
* "key": "Staff Name",
2690+
* "value": "Sam",
2691+
* "namespace": "Sales Department",
2692+
* "permission_set": "app_only",
2693+
* "resource_type": "cart",
2694+
* "resource_id": "b810114d-9926-45b7-bba5-7633b251154b",
2695+
* "description": "Name of staff member",
2696+
* "date_created": "2023-11-15T15:16:35+00:00",
2697+
* "date_modified": "2023-11-15T15:16:35+00:00"
2698+
* },
2699+
* "meta": {}
2700+
* } */
26692701
readonly "application/json": components["schemas"]["MetaFieldCollectionResponse"];
26702702
};
26712703
};
@@ -2675,6 +2707,12 @@ export interface operations {
26752707
readonly [name: string]: unknown;
26762708
};
26772709
content: {
2710+
/** @example {
2711+
* "status": 400,
2712+
* "title": "Input is invalid",
2713+
* "type": "https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes",
2714+
* "detail": "Syntax error"
2715+
* } */
26782716
readonly "application/json": {
26792717
readonly status?: number;
26802718
readonly title?: string;
@@ -2797,6 +2835,12 @@ export interface operations {
27972835
readonly [name: string]: unknown;
27982836
};
27992837
content: {
2838+
/** @example {
2839+
* "status": 400,
2840+
* "title": "Input is invalid",
2841+
* "type": "https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes",
2842+
* "detail": "Syntax error"
2843+
* } */
28002844
readonly "application/json": {
28012845
readonly status?: number;
28022846
readonly title?: string;
@@ -2943,6 +2987,12 @@ export interface operations {
29432987
readonly [name: string]: unknown;
29442988
};
29452989
content: {
2990+
/** @example {
2991+
* "status": 400,
2992+
* "title": "Input is invalid",
2993+
* "type": "https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes",
2994+
* "detail": "Syntax error"
2995+
* } */
29462996
readonly "application/json": {
29472997
readonly status?: number;
29482998
readonly title?: string;
@@ -2999,6 +3049,12 @@ export interface operations {
29993049
readonly [name: string]: unknown;
30003050
};
30013051
content: {
3052+
/** @example {
3053+
* "status": 400,
3054+
* "title": "Input is invalid",
3055+
* "type": "https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes",
3056+
* "detail": "Syntax error"
3057+
* } */
30023058
readonly "application/json": {
30033059
readonly status?: number;
30043060
readonly title?: string;
@@ -3049,6 +3105,12 @@ export interface operations {
30493105
readonly [name: string]: unknown;
30503106
};
30513107
content: {
3108+
/** @example {
3109+
* "status": 400,
3110+
* "title": "Input is invalid",
3111+
* "type": "https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes",
3112+
* "detail": "Syntax error"
3113+
* } */
30523114
readonly "application/json": {
30533115
readonly status?: number;
30543116
readonly title?: string;

0 commit comments

Comments
 (0)