@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,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DJUST SDK Operation Service - Types
|
|
3
|
-
* Type definitions for operation
|
|
3
|
+
* Type definitions for shop (buyer) operation APIs.
|
|
4
4
|
*
|
|
5
5
|
* @module services/operation/types
|
|
6
6
|
* @since 2.17.0
|
|
@@ -8,99 +8,24 @@
|
|
|
8
8
|
import type { PaginatedResponse } from "../types";
|
|
9
9
|
export type OperationType = "PUBLIC" | "PRIVATE";
|
|
10
10
|
export type OperationStatus = "DRAFT" | "ACTIVE" | "INACTIVE";
|
|
11
|
-
export type IdType = "DJUST_ID" | "EXTERNAL_ID";
|
|
12
11
|
export interface CustomFieldValueRequest {
|
|
13
12
|
customFieldId: string;
|
|
14
13
|
customFieldValue?: string;
|
|
15
14
|
}
|
|
16
|
-
export interface OperationLineRequest {
|
|
17
|
-
variantId: string;
|
|
18
|
-
minQuantity: number;
|
|
19
|
-
maxQuantity: number;
|
|
20
|
-
recommendedQuantity: number;
|
|
21
|
-
}
|
|
22
|
-
export interface GetShopOperationsParams {
|
|
23
|
-
page?: number;
|
|
24
|
-
size?: number;
|
|
25
|
-
sort?: string[];
|
|
26
|
-
ids?: string[];
|
|
27
|
-
name?: string;
|
|
28
|
-
startDateFrom?: string;
|
|
29
|
-
startDateTo?: string;
|
|
30
|
-
endDateFrom?: string;
|
|
31
|
-
endDateTo?: string;
|
|
32
|
-
locale?: string;
|
|
33
|
-
}
|
|
34
15
|
export interface GetOperationsParams {
|
|
35
16
|
page?: number;
|
|
36
17
|
size?: number;
|
|
37
18
|
sort?: string[];
|
|
38
|
-
type?: OperationType;
|
|
39
|
-
status?: OperationStatus;
|
|
40
19
|
ids?: string[];
|
|
41
20
|
name?: string;
|
|
42
21
|
startDateFrom?: string;
|
|
43
22
|
startDateTo?: string;
|
|
44
23
|
endDateFrom?: string;
|
|
45
24
|
endDateTo?: string;
|
|
46
|
-
ownerIds?: string[];
|
|
47
|
-
idType?: IdType;
|
|
48
|
-
locale?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface GetShopOperationParams {
|
|
51
|
-
operationId: string;
|
|
52
25
|
locale?: string;
|
|
53
26
|
}
|
|
54
27
|
export interface GetOperationParams {
|
|
55
28
|
operationId: string;
|
|
56
|
-
}
|
|
57
|
-
export interface CreateOperationParams {
|
|
58
|
-
externalId: string;
|
|
59
|
-
names: string;
|
|
60
|
-
startDate: string;
|
|
61
|
-
endDate: string;
|
|
62
|
-
type: OperationType;
|
|
63
|
-
customFieldValues?: CustomFieldValueRequest[];
|
|
64
|
-
descriptions?: string;
|
|
65
|
-
}
|
|
66
|
-
export interface UpdateOperationParams {
|
|
67
|
-
operationId: string;
|
|
68
|
-
status: OperationStatus;
|
|
69
|
-
}
|
|
70
|
-
export interface UpdateOperationDetailsParams {
|
|
71
|
-
operationId: string;
|
|
72
|
-
customFieldValues?: CustomFieldValueRequest[];
|
|
73
|
-
descriptions?: string;
|
|
74
|
-
endDate?: string;
|
|
75
|
-
names?: string;
|
|
76
|
-
startDate?: string;
|
|
77
|
-
}
|
|
78
|
-
export interface DeleteOperationParams {
|
|
79
|
-
operationId: string;
|
|
80
|
-
}
|
|
81
|
-
export interface GetOperationAccountsParams {
|
|
82
|
-
operationId: string;
|
|
83
|
-
page?: number;
|
|
84
|
-
size?: number;
|
|
85
|
-
sort?: string[];
|
|
86
|
-
accountIds?: string[];
|
|
87
|
-
accountName?: string;
|
|
88
|
-
}
|
|
89
|
-
export interface AddOperationAccountsParams {
|
|
90
|
-
operationId: string;
|
|
91
|
-
accountIds: string[];
|
|
92
|
-
}
|
|
93
|
-
export interface RemoveOperationAccountsParams {
|
|
94
|
-
operationId: string;
|
|
95
|
-
accountIds: string[];
|
|
96
|
-
}
|
|
97
|
-
export interface GetShopOperationLinesParams {
|
|
98
|
-
operationId: string;
|
|
99
|
-
page?: number;
|
|
100
|
-
size?: number;
|
|
101
|
-
sort?: string[];
|
|
102
|
-
variantIds?: string[];
|
|
103
|
-
variantName?: string;
|
|
104
29
|
locale?: string;
|
|
105
30
|
}
|
|
106
31
|
export interface GetOperationLinesParams {
|
|
@@ -110,19 +35,8 @@ export interface GetOperationLinesParams {
|
|
|
110
35
|
sort?: string[];
|
|
111
36
|
variantIds?: string[];
|
|
112
37
|
variantName?: string;
|
|
113
|
-
minQuantity?: number;
|
|
114
|
-
maxQuantity?: number;
|
|
115
|
-
recommendedQuantity?: number;
|
|
116
38
|
locale?: string;
|
|
117
39
|
}
|
|
118
|
-
export interface AddOperationLinesParams {
|
|
119
|
-
operationId: string;
|
|
120
|
-
lines: OperationLineRequest[];
|
|
121
|
-
}
|
|
122
|
-
export interface RemoveOperationLinesParams {
|
|
123
|
-
operationId: string;
|
|
124
|
-
variantIds: string[];
|
|
125
|
-
}
|
|
126
40
|
export interface Operation {
|
|
127
41
|
id: string;
|
|
128
42
|
externalId?: string;
|
|
@@ -137,11 +51,6 @@ export interface Operation {
|
|
|
137
51
|
createdAt: string;
|
|
138
52
|
updatedAt: string;
|
|
139
53
|
}
|
|
140
|
-
export interface OperationAccount {
|
|
141
|
-
id: string;
|
|
142
|
-
externalId?: string;
|
|
143
|
-
name: string;
|
|
144
|
-
}
|
|
145
54
|
export interface OperationLine {
|
|
146
55
|
id: string;
|
|
147
56
|
variantId: string;
|
|
@@ -151,24 +60,10 @@ export interface OperationLine {
|
|
|
151
60
|
maxQuantity: number;
|
|
152
61
|
recommendedQuantity: number;
|
|
153
62
|
}
|
|
154
|
-
export interface GetShopOperationsResponse extends PaginatedResponse<Operation> {
|
|
155
|
-
}
|
|
156
63
|
export interface GetOperationsResponse extends PaginatedResponse<Operation> {
|
|
157
64
|
}
|
|
158
|
-
export interface GetShopOperationResponse extends Operation {
|
|
159
|
-
}
|
|
160
65
|
export interface GetOperationResponse extends Operation {
|
|
161
66
|
}
|
|
162
|
-
export interface CreateOperationResponse {
|
|
163
|
-
id: string;
|
|
164
|
-
}
|
|
165
|
-
export interface UpdateOperationDetailsResponse {
|
|
166
|
-
id: string;
|
|
167
|
-
}
|
|
168
|
-
export interface GetOperationAccountsResponse extends PaginatedResponse<OperationAccount> {
|
|
169
|
-
}
|
|
170
|
-
export interface GetShopOperationLinesResponse extends PaginatedResponse<OperationLine> {
|
|
171
|
-
}
|
|
172
67
|
export interface GetOperationLinesResponse extends PaginatedResponse<OperationLine> {
|
|
173
68
|
}
|
|
174
69
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/operation/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/operation/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAMlD,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;AACjD,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAMD,MAAM,WAAW,mBAA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