@djust-b2b/djust-front-sdk 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/.tsbuildinfo-esm +1 -1
- package/dist/client/create-client.d.ts +1 -0
- package/dist/client/create-client.d.ts.map +1 -1
- package/dist/index.d.ts +6 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +43 -433
- package/dist/services/module.d.ts +1 -1
- package/dist/services/module.d.ts.map +1 -1
- package/dist/services/operation/definitions.d.ts +4 -175
- package/dist/services/operation/definitions.d.ts.map +1 -1
- package/dist/services/operation/endpoints.d.ts +1 -5
- package/dist/services/operation/endpoints.d.ts.map +1 -1
- package/dist/services/operation/index.d.ts +12 -510
- package/dist/services/operation/index.d.ts.map +1 -1
- package/dist/services/operation/module.d.ts +1 -1
- package/dist/services/operation/module.d.ts.map +1 -1
- package/dist/services/operation/operation.service.d.ts +34 -16
- package/dist/services/operation/operation.service.d.ts.map +1 -1
- package/dist/services/operation/types.d.ts +1 -106
- package/dist/services/operation/types.d.ts.map +1 -1
- package/dist/settings/sdk-version.d.ts +1 -1
- package/lib/.tsbuildinfo +1 -1
- package/lib/client/create-client.d.ts +1 -0
- package/lib/client/create-client.d.ts.map +1 -1
- package/lib/client/create-client.js +1 -0
- package/lib/client/create-client.js.map +1 -1
- package/lib/index.d.ts +6 -15
- package/lib/index.d.ts.map +1 -1
- package/lib/services/module.d.ts +1 -1
- package/lib/services/module.d.ts.map +1 -1
- package/lib/services/module.js.map +1 -1
- package/lib/services/operation/definitions.d.ts +4 -175
- package/lib/services/operation/definitions.d.ts.map +1 -1
- package/lib/services/operation/definitions.js.map +1 -1
- package/lib/services/operation/endpoints.d.ts +1 -5
- package/lib/services/operation/endpoints.d.ts.map +1 -1
- package/lib/services/operation/endpoints.js +1 -7
- package/lib/services/operation/endpoints.js.map +1 -1
- package/lib/services/operation/index.d.ts +12 -510
- package/lib/services/operation/index.d.ts.map +1 -1
- package/lib/services/operation/index.js +14 -650
- package/lib/services/operation/index.js.map +1 -1
- package/lib/services/operation/module.d.ts +1 -1
- package/lib/services/operation/module.d.ts.map +1 -1
- package/lib/services/operation/module.js.map +1 -1
- package/lib/services/operation/operation.service.d.ts +34 -16
- package/lib/services/operation/operation.service.d.ts.map +1 -1
- package/lib/services/operation/operation.service.js +36 -155
- package/lib/services/operation/operation.service.js.map +1 -1
- package/lib/services/operation/types.d.ts +1 -106
- package/lib/services/operation/types.d.ts.map +1 -1
- package/lib/services/operation/types.js +1 -1
- package/lib/settings/sdk-version.d.ts +1 -1
- package/lib/settings/sdk-version.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IdType } from "../../interfaces/models/common";
|
|
2
1
|
import type { CustomFieldValue } from "../auth/definitions";
|
|
3
2
|
/**
|
|
4
3
|
* Enums
|
|
@@ -13,100 +12,22 @@ export declare enum OperationStatus {
|
|
|
13
12
|
INACTIVE = "INACTIVE"
|
|
14
13
|
}
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
15
|
+
* Shop (buyer) request parameters
|
|
17
16
|
*/
|
|
18
|
-
export interface GetShopOperationsParameters {
|
|
19
|
-
page?: number;
|
|
20
|
-
size?: number;
|
|
21
|
-
sort?: string[];
|
|
22
|
-
ids?: string[];
|
|
23
|
-
name?: string;
|
|
24
|
-
startDateFrom?: string;
|
|
25
|
-
startDateTo?: string;
|
|
26
|
-
endDateFrom?: string;
|
|
27
|
-
endDateTo?: string;
|
|
28
|
-
locale?: string;
|
|
29
|
-
}
|
|
30
17
|
export interface GetOperationsParameters {
|
|
31
18
|
page?: number;
|
|
32
19
|
size?: number;
|
|
33
20
|
sort?: string[];
|
|
34
|
-
type?: OperationType;
|
|
35
|
-
status?: OperationStatus;
|
|
36
21
|
ids?: string[];
|
|
37
22
|
name?: string;
|
|
38
23
|
startDateFrom?: string;
|
|
39
24
|
startDateTo?: string;
|
|
40
25
|
endDateFrom?: string;
|
|
41
26
|
endDateTo?: string;
|
|
42
|
-
ownerIds?: string[];
|
|
43
|
-
idType?: IdType;
|
|
44
|
-
locale?: string;
|
|
45
|
-
}
|
|
46
|
-
export interface CreateOperationParameters {
|
|
47
|
-
customFieldValues?: {
|
|
48
|
-
customFieldId: string;
|
|
49
|
-
customFieldValue: string;
|
|
50
|
-
}[];
|
|
51
|
-
descriptions?: string;
|
|
52
|
-
endDate: string;
|
|
53
|
-
externalId: string;
|
|
54
|
-
names: string;
|
|
55
|
-
startDate: string;
|
|
56
|
-
type: OperationType;
|
|
57
|
-
}
|
|
58
|
-
export interface DeleteOperationParameters {
|
|
59
|
-
operationId: string;
|
|
60
|
-
}
|
|
61
|
-
export interface GetShopOperationParameters {
|
|
62
|
-
operationId: string;
|
|
63
27
|
locale?: string;
|
|
64
28
|
}
|
|
65
29
|
export interface GetOperationParameters {
|
|
66
30
|
operationId: string;
|
|
67
|
-
}
|
|
68
|
-
export interface UpdateOperationParameters {
|
|
69
|
-
operationId: string;
|
|
70
|
-
status: OperationStatus;
|
|
71
|
-
}
|
|
72
|
-
export interface UpdateOperationDetailsParameters {
|
|
73
|
-
operationId: string;
|
|
74
|
-
customFieldValues?: {
|
|
75
|
-
customFieldId: string;
|
|
76
|
-
customFieldValue: string;
|
|
77
|
-
}[];
|
|
78
|
-
descriptions?: string;
|
|
79
|
-
endDate?: string;
|
|
80
|
-
names?: string;
|
|
81
|
-
startDate?: string;
|
|
82
|
-
}
|
|
83
|
-
export interface RemoveOperationAccountsParameters {
|
|
84
|
-
operationId: string;
|
|
85
|
-
accountIds: string[];
|
|
86
|
-
}
|
|
87
|
-
export interface GetOperationAccountsParameters {
|
|
88
|
-
operationId: string;
|
|
89
|
-
page?: number;
|
|
90
|
-
size?: number;
|
|
91
|
-
sort?: string[];
|
|
92
|
-
accountIds?: string[];
|
|
93
|
-
accountName?: string;
|
|
94
|
-
}
|
|
95
|
-
export interface AddOperationAccountsParameters {
|
|
96
|
-
operationId: string;
|
|
97
|
-
accountIds: string[];
|
|
98
|
-
}
|
|
99
|
-
export interface RemoveOperationLinesParameters {
|
|
100
|
-
operationId: string;
|
|
101
|
-
variantIds: string[];
|
|
102
|
-
}
|
|
103
|
-
export interface GetShopOperationLinesParameters {
|
|
104
|
-
operationId: string;
|
|
105
|
-
page?: number;
|
|
106
|
-
size?: number;
|
|
107
|
-
sort?: string[];
|
|
108
|
-
variantIds?: string[];
|
|
109
|
-
variantName?: string;
|
|
110
31
|
locale?: string;
|
|
111
32
|
}
|
|
112
33
|
export interface GetOperationLinesParameters {
|
|
@@ -116,20 +37,8 @@ export interface GetOperationLinesParameters {
|
|
|
116
37
|
sort?: string[];
|
|
117
38
|
variantIds?: string[];
|
|
118
39
|
variantName?: string;
|
|
119
|
-
minQuantity?: number;
|
|
120
|
-
maxQuantity?: number;
|
|
121
|
-
recommendedQuantity?: number;
|
|
122
40
|
locale?: string;
|
|
123
41
|
}
|
|
124
|
-
export interface AddOperationLinesParameters {
|
|
125
|
-
operationId: string;
|
|
126
|
-
lines: {
|
|
127
|
-
variantId: string;
|
|
128
|
-
minQuantity: number;
|
|
129
|
-
maxQuantity: number;
|
|
130
|
-
recommendedQuantity: number;
|
|
131
|
-
}[];
|
|
132
|
-
}
|
|
133
42
|
/**
|
|
134
43
|
* Response type definitions
|
|
135
44
|
*/
|
|
@@ -141,53 +50,8 @@ export interface ShopOperation {
|
|
|
141
50
|
startDate: string;
|
|
142
51
|
type: OperationType;
|
|
143
52
|
}
|
|
144
|
-
export interface Operation {
|
|
145
|
-
id: string;
|
|
146
|
-
name: string;
|
|
147
|
-
type: OperationType;
|
|
148
|
-
status: OperationStatus;
|
|
149
|
-
startDate: string;
|
|
150
|
-
endDate: string;
|
|
151
|
-
createdDate: string;
|
|
152
|
-
updatedDate: string;
|
|
153
|
-
ownerId: string;
|
|
154
|
-
ownerExternalId: string;
|
|
155
|
-
ownerFirstName: string;
|
|
156
|
-
ownerLastName: string;
|
|
157
|
-
externalId: string;
|
|
158
|
-
}
|
|
159
|
-
export interface GetShopOperationsResponse {
|
|
160
|
-
content: ShopOperation[];
|
|
161
|
-
empty: boolean;
|
|
162
|
-
first: boolean;
|
|
163
|
-
last: boolean;
|
|
164
|
-
number: number;
|
|
165
|
-
numberOfElements: number;
|
|
166
|
-
size: number;
|
|
167
|
-
sort: string[];
|
|
168
|
-
}
|
|
169
53
|
export interface GetOperationsResponse {
|
|
170
|
-
content:
|
|
171
|
-
empty: boolean;
|
|
172
|
-
first: boolean;
|
|
173
|
-
last: boolean;
|
|
174
|
-
number: number;
|
|
175
|
-
numberOfElements: number;
|
|
176
|
-
size: number;
|
|
177
|
-
sort: string[];
|
|
178
|
-
}
|
|
179
|
-
export interface CreateOperationResponse {
|
|
180
|
-
id: string;
|
|
181
|
-
}
|
|
182
|
-
export interface UpdateOperationDetailsResponse {
|
|
183
|
-
id: string;
|
|
184
|
-
}
|
|
185
|
-
export interface OperationAccount {
|
|
186
|
-
accountId: string;
|
|
187
|
-
accountName: string;
|
|
188
|
-
}
|
|
189
|
-
export interface GetOperationAccountsResponse {
|
|
190
|
-
content: OperationAccount[];
|
|
54
|
+
content: ShopOperation[];
|
|
191
55
|
empty: boolean;
|
|
192
56
|
first: boolean;
|
|
193
57
|
last: boolean;
|
|
@@ -204,25 +68,8 @@ export interface ShopOperationLine {
|
|
|
204
68
|
maxQuantity: number;
|
|
205
69
|
recommendedQuantity: number;
|
|
206
70
|
}
|
|
207
|
-
export interface OperationLine {
|
|
208
|
-
variantId: string;
|
|
209
|
-
variantName: string;
|
|
210
|
-
minQuantity: number;
|
|
211
|
-
maxQuantity: number;
|
|
212
|
-
recommendedQuantity: number;
|
|
213
|
-
}
|
|
214
|
-
export interface GetShopOperationLinesResponse {
|
|
215
|
-
content: ShopOperationLine[];
|
|
216
|
-
empty: boolean;
|
|
217
|
-
first: boolean;
|
|
218
|
-
last: boolean;
|
|
219
|
-
number: number;
|
|
220
|
-
numberOfElements: number;
|
|
221
|
-
size: number;
|
|
222
|
-
sort: string[];
|
|
223
|
-
}
|
|
224
71
|
export interface GetOperationLinesResponse {
|
|
225
|
-
content:
|
|
72
|
+
content: ShopOperationLine[];
|
|
226
73
|
empty: boolean;
|
|
227
74
|
first: boolean;
|
|
228
75
|
last: boolean;
|
|
@@ -231,7 +78,7 @@ export interface GetOperationLinesResponse {
|
|
|
231
78
|
size: number;
|
|
232
79
|
sort: string[];
|
|
233
80
|
}
|
|
234
|
-
export interface
|
|
81
|
+
export interface GetOperationResponse {
|
|
235
82
|
createdAt: string;
|
|
236
83
|
customFieldValues: CustomFieldValue[];
|
|
237
84
|
descriptions: string;
|
|
@@ -242,22 +89,4 @@ export interface GetShopOperationResponse {
|
|
|
242
89
|
type: OperationType;
|
|
243
90
|
updatedDate: string;
|
|
244
91
|
}
|
|
245
|
-
export interface GetOperationResponse {
|
|
246
|
-
id: string;
|
|
247
|
-
name: string;
|
|
248
|
-
type: OperationType;
|
|
249
|
-
status: OperationStatus;
|
|
250
|
-
startDate: string;
|
|
251
|
-
endDate: string;
|
|
252
|
-
createdDate: string;
|
|
253
|
-
updatedDate: string;
|
|
254
|
-
ownerId: string;
|
|
255
|
-
ownerExternalId: string;
|
|
256
|
-
ownerFirstName: string;
|
|
257
|
-
ownerLastName: string;
|
|
258
|
-
externalId: string;
|
|
259
|
-
names: string;
|
|
260
|
-
descriptions: string;
|
|
261
|
-
customFieldValues: CustomFieldValue[];
|
|
262
|
-
}
|
|
263
92
|
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/services/operation/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/services/operation/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;GAEG;AAEH,o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OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DJUST SDK Operation Service - Endpoints
|
|
3
|
-
* API endpoint constants for operation
|
|
3
|
+
* API endpoint constants for shop operation APIs.
|
|
4
4
|
*
|
|
5
5
|
* @module services/operation/endpoints
|
|
6
6
|
* @since 2.17.0
|
|
@@ -9,10 +9,6 @@ export declare const OperationEndpoints: {
|
|
|
9
9
|
readonly SHOP_OPERATIONS: "/v1/shop/operations";
|
|
10
10
|
readonly SHOP_OPERATION: "/v1/shop/operations/{operationId}";
|
|
11
11
|
readonly SHOP_OPERATION_LINES: "/v1/shop/operations/{operationId}/lines";
|
|
12
|
-
readonly OPERATIONS: "/v1/operations";
|
|
13
|
-
readonly OPERATION: "/v1/operations/{operationId}";
|
|
14
|
-
readonly OPERATION_ACCOUNTS: "/v1/operations/{operationId}/accounts";
|
|
15
|
-
readonly OPERATION_LINES: "/v1/operations/{operationId}/lines";
|
|
16
12
|
};
|
|
17
13
|
export type OperationEndpoint = (typeof OperationEndpoints)[keyof typeof OperationEndpoints];
|
|
18
14
|
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/services/operation/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/services/operation/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"}
|