@djust-b2b/djust-front-sdk 3.2.0 → 3.2.2
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 +15 -0
- package/dist/client/create-client.d.ts.map +1 -1
- package/dist/index.d.ts +15 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +506 -31
- package/dist/services/module.d.ts +1 -1
- package/dist/services/module.d.ts.map +1 -1
- package/dist/services/operation/definitions.d.ts +175 -4
- package/dist/services/operation/definitions.d.ts.map +1 -1
- package/dist/services/operation/endpoints.d.ts +5 -1
- package/dist/services/operation/endpoints.d.ts.map +1 -1
- package/dist/services/operation/index.d.ts +510 -12
- 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 +74 -23
- package/dist/services/operation/operation.service.d.ts.map +1 -1
- package/dist/services/operation/types.d.ts +118 -1
- 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 +15 -0
- package/lib/client/create-client.d.ts.map +1 -1
- package/lib/client/create-client.js +15 -0
- package/lib/client/create-client.js.map +1 -1
- package/lib/index.d.ts +15 -6
- 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 +175 -4
- 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 +5 -1
- package/lib/services/operation/endpoints.d.ts.map +1 -1
- package/lib/services/operation/endpoints.js +7 -1
- package/lib/services/operation/endpoints.js.map +1 -1
- package/lib/services/operation/index.d.ts +510 -12
- package/lib/services/operation/index.d.ts.map +1 -1
- package/lib/services/operation/index.js +650 -14
- 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 +74 -23
- package/lib/services/operation/operation.service.d.ts.map +1 -1
- package/lib/services/operation/operation.service.js +213 -25
- package/lib/services/operation/operation.service.js.map +1 -1
- package/lib/services/operation/types.d.ts +118 -1
- 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,50 +1,101 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* DJUST SDK Operation Service
|
|
3
|
+
* Service class for operation management.
|
|
3
4
|
*
|
|
4
|
-
* Time-bound assortments of product variants with quantity constraints and scoped
|
|
5
|
-
* visibility (PUBLIC or PRIVATE). Customer users browse active operations via the
|
|
6
|
-
* shop API.
|
|
7
|
-
*
|
|
8
|
-
* @see https://djust-api.readme.io/docs/operations
|
|
9
5
|
* @module services/operation/service
|
|
10
6
|
* @since 2.17.0
|
|
11
7
|
*/
|
|
12
8
|
import { BaseService } from "../base.service";
|
|
13
9
|
import type { RequestContext } from "../../client/transport";
|
|
14
|
-
import type { GetOperationsParams, GetOperationParams, GetOperationLinesParams, GetOperationsResponse, GetOperationResponse, GetOperationLinesResponse } from "./types";
|
|
10
|
+
import type { GetShopOperationsParams, GetOperationsParams, GetShopOperationParams, GetOperationParams, CreateOperationParams, UpdateOperationParams, UpdateOperationDetailsParams, DeleteOperationParams, GetOperationAccountsParams, AddOperationAccountsParams, RemoveOperationAccountsParams, GetShopOperationLinesParams, GetOperationLinesParams, AddOperationLinesParams, RemoveOperationLinesParams, GetShopOperationsResponse, GetOperationsResponse, GetShopOperationResponse, GetOperationResponse, CreateOperationResponse, UpdateOperationDetailsResponse, GetOperationAccountsResponse, GetShopOperationLinesResponse, GetOperationLinesResponse } from "./types";
|
|
15
11
|
/**
|
|
16
|
-
* Service for
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* import { createDjustClient } from '@djust-b2b/djust-front-sdk';
|
|
21
|
-
*
|
|
22
|
-
* const client = createDjustClient({ baseUrl, clientId, apiKey });
|
|
23
|
-
* const sdk = client.withContext({ accessToken, customerAccountId });
|
|
24
|
-
*
|
|
25
|
-
* const { content } = await sdk.getOperations({ locale: 'fr-FR', page: 0, size: 10 });
|
|
26
|
-
* await sdk.createCommercialOrderV2({ operationId: content[0].id });
|
|
27
|
-
* ```
|
|
12
|
+
* Service for operation management.
|
|
28
13
|
*/
|
|
29
14
|
export declare class OperationService extends BaseService {
|
|
30
15
|
readonly serviceName = "operation";
|
|
31
16
|
/**
|
|
32
17
|
* List ACTIVE operations visible to the caller on the effective store.
|
|
33
|
-
*
|
|
34
18
|
* **Endpoint**: `GET /v1/shop/operations [OPERATION-550]`
|
|
35
19
|
*/
|
|
20
|
+
getShopOperations(params?: GetShopOperationsParams, context?: RequestContext): Promise<GetShopOperationsResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* List operations with filters on type, status, dates, and owner.
|
|
23
|
+
* **Endpoint**: `GET /v1/operations [ADM-OPERATION-550]`
|
|
24
|
+
*/
|
|
36
25
|
getOperations(params?: GetOperationsParams, context?: RequestContext): Promise<GetOperationsResponse>;
|
|
37
26
|
/**
|
|
38
|
-
* Get a single operation
|
|
39
|
-
*
|
|
27
|
+
* Get a single shop operation (metadata only).
|
|
40
28
|
* **Endpoint**: `GET /v1/shop/operations/{operationId} [OPERATION-500]`
|
|
41
29
|
*/
|
|
30
|
+
getShopOperation(params: GetShopOperationParams, context?: RequestContext): Promise<GetShopOperationResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Get a single operation by ID (full metadata).
|
|
33
|
+
* **Endpoint**: `GET /v1/operations/{operationId} [ADM-OPERATION-500]`
|
|
34
|
+
*/
|
|
42
35
|
getOperation(params: GetOperationParams, context?: RequestContext): Promise<GetOperationResponse>;
|
|
43
36
|
/**
|
|
44
|
-
*
|
|
37
|
+
* Create a new operation (DRAFT status).
|
|
38
|
+
* **Endpoint**: `POST /v1/operations [ADM-OPERATION-100]`
|
|
45
39
|
*
|
|
40
|
+
* Required: `names`, `externalId`, `type`, `startDate`. `endDate` is optional;
|
|
41
|
+
* when provided, `startDate` must be less than or equal to `endDate`.
|
|
42
|
+
*/
|
|
43
|
+
createOperation(params: CreateOperationParams, context?: RequestContext): Promise<CreateOperationResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Change operation status (activate or deactivate).
|
|
46
|
+
* **Endpoint**: `PATCH /v1/operations/{operationId} [ADM-OPERATION-201]`
|
|
47
|
+
*/
|
|
48
|
+
updateOperation(params: UpdateOperationParams, context?: RequestContext): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Update operation metadata (names, dates, custom fields).
|
|
51
|
+
* **Endpoint**: `PUT /v1/operations/{operationId} [ADM-OPERATION-200]`
|
|
52
|
+
*/
|
|
53
|
+
updateOperationDetails(params: UpdateOperationDetailsParams, context?: RequestContext): Promise<UpdateOperationDetailsResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Delete an operation (must not be linked to carts or orders).
|
|
56
|
+
* **Endpoint**: `DELETE /v1/operations/{operationId} [ADM-OPERATION-300]`
|
|
57
|
+
*/
|
|
58
|
+
deleteOperation(params: DeleteOperationParams, context?: RequestContext): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* List accounts linked to a PRIVATE operation.
|
|
61
|
+
* **Endpoint**: `GET /v1/operations/{operationId}/accounts [ADM-OPERATION-552]`
|
|
62
|
+
*/
|
|
63
|
+
getOperationAccounts(params: GetOperationAccountsParams, context?: RequestContext): Promise<GetOperationAccountsResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Add accounts to a PRIVATE operation.
|
|
66
|
+
* **Endpoint**: `PUT /v1/operations/{operationId}/accounts [ADM-OPERATION-251]`
|
|
67
|
+
*/
|
|
68
|
+
addOperationAccounts(params: AddOperationAccountsParams, context?: RequestContext): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Remove accounts from a PRIVATE operation.
|
|
71
|
+
* **Endpoint**: `DELETE /v1/operations/{operationId}/accounts [ADM-OPERATION-351]`
|
|
72
|
+
*/
|
|
73
|
+
removeOperationAccounts(params: RemoveOperationAccountsParams, context?: RequestContext): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* List product variant lines for a shop operation.
|
|
46
76
|
* **Endpoint**: `GET /v1/shop/operations/{operationId}/lines [OPERATION-551]`
|
|
47
77
|
*/
|
|
78
|
+
getShopOperationLines(params: GetShopOperationLinesParams, context?: RequestContext): Promise<GetShopOperationLinesResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* List product variant lines for an operation.
|
|
81
|
+
* **Endpoint**: `GET /v1/operations/{operationId}/lines [ADM-OPERATION-551]`
|
|
82
|
+
*/
|
|
48
83
|
getOperationLines(params: GetOperationLinesParams, context?: RequestContext): Promise<GetOperationLinesResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* Add or update variant lines on an operation.
|
|
86
|
+
* **Endpoint**: `PUT /v1/operations/{operationId}/lines [ADM-OPERATION-250]`
|
|
87
|
+
*/
|
|
88
|
+
addOperationLines(params: AddOperationLinesParams, context?: RequestContext): Promise<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Remove variant lines from an operation.
|
|
91
|
+
* **Endpoint**: `DELETE /v1/operations/{operationId}/lines [ADM-OPERATION-350]`
|
|
92
|
+
*/
|
|
93
|
+
removeOperationLines(params: RemoveOperationLinesParams, context?: RequestContext): Promise<void>;
|
|
94
|
+
/** @deprecated Alias for {@link getOperations}. */
|
|
95
|
+
getAdminOperations(params?: GetOperationsParams, context?: RequestContext): Promise<GetOperationsResponse>;
|
|
96
|
+
/** @deprecated Alias for {@link getOperation}. */
|
|
97
|
+
getAdminOperation(params: GetOperationParams, context?: RequestContext): Promise<GetOperationResponse>;
|
|
98
|
+
/** @deprecated Alias for {@link getOperationLines}. */
|
|
99
|
+
getAdminOperationLines(params: GetOperationLinesParams, context?: RequestContext): Promise<GetOperationLinesResponse>;
|
|
49
100
|
}
|
|
50
101
|
//# sourceMappingURL=operation.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation.service.d.ts","sourceRoot":"","sources":["../../../src/services/operation/operation.service.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"operation.service.d.ts","sourceRoot":"","sources":["../../../src/services/operation/operation.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,uBAAuB,EACvB,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,EAC7B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,QAAQ,CAAC,WAAW,eAAe;IAEnC;;;OAGG;IACG,iBAAiB,CACrB,MAAM,GAAE,uBAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,yBAAyB,CAAC;IAWrC;;;OAGG;IACG,aAAa,CACjB,MAAM,GAAE,mBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc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CACrB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,yBAAyB,CAAC;IAyBrC;;;OAGG;IACG,iBAAiB,CACrB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAehB;;;OAGG;IACG,oBAAoB,CACxB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAehB,mDAAmD;IAC7C,kBAAkB,CACtB,MAAM,GAAE,mBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,qBAAqB,CAAC;IAIjC,kDAAkD;IAC5C,iBAAiB,CACrB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,oBAAoB,CAAC;IAIhC,uDAAuD;IACjD,sBAAsB,CAC1B,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,yBAAyB,CAAC;CAGtC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DJUST SDK Operation Service - Types
|
|
3
|
-
* Type definitions for
|
|
3
|
+
* Type definitions for operation management.
|
|
4
4
|
*
|
|
5
5
|
* @module services/operation/types
|
|
6
6
|
* @since 2.17.0
|
|
@@ -8,24 +8,99 @@
|
|
|
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";
|
|
11
12
|
export interface CustomFieldValueRequest {
|
|
12
13
|
customFieldId: string;
|
|
13
14
|
customFieldValue?: string;
|
|
14
15
|
}
|
|
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
|
+
}
|
|
15
34
|
export interface GetOperationsParams {
|
|
16
35
|
page?: number;
|
|
17
36
|
size?: number;
|
|
18
37
|
sort?: string[];
|
|
38
|
+
type?: OperationType;
|
|
39
|
+
status?: OperationStatus;
|
|
19
40
|
ids?: string[];
|
|
20
41
|
name?: string;
|
|
21
42
|
startDateFrom?: string;
|
|
22
43
|
startDateTo?: string;
|
|
23
44
|
endDateFrom?: string;
|
|
24
45
|
endDateTo?: string;
|
|
46
|
+
ownerIds?: string[];
|
|
47
|
+
idType?: IdType;
|
|
48
|
+
locale?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface GetShopOperationParams {
|
|
51
|
+
operationId: string;
|
|
25
52
|
locale?: string;
|
|
26
53
|
}
|
|
27
54
|
export interface GetOperationParams {
|
|
28
55
|
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;
|
|
29
104
|
locale?: string;
|
|
30
105
|
}
|
|
31
106
|
export interface GetOperationLinesParams {
|
|
@@ -35,8 +110,19 @@ export interface GetOperationLinesParams {
|
|
|
35
110
|
sort?: string[];
|
|
36
111
|
variantIds?: string[];
|
|
37
112
|
variantName?: string;
|
|
113
|
+
minQuantity?: number;
|
|
114
|
+
maxQuantity?: number;
|
|
115
|
+
recommendedQuantity?: number;
|
|
38
116
|
locale?: string;
|
|
39
117
|
}
|
|
118
|
+
export interface AddOperationLinesParams {
|
|
119
|
+
operationId: string;
|
|
120
|
+
lines: OperationLineRequest[];
|
|
121
|
+
}
|
|
122
|
+
export interface RemoveOperationLinesParams {
|
|
123
|
+
operationId: string;
|
|
124
|
+
variantIds: string[];
|
|
125
|
+
}
|
|
40
126
|
export interface Operation {
|
|
41
127
|
id: string;
|
|
42
128
|
externalId?: string;
|
|
@@ -51,6 +137,11 @@ export interface Operation {
|
|
|
51
137
|
createdAt: string;
|
|
52
138
|
updatedAt: string;
|
|
53
139
|
}
|
|
140
|
+
export interface OperationAccount {
|
|
141
|
+
id: string;
|
|
142
|
+
externalId?: string;
|
|
143
|
+
name: string;
|
|
144
|
+
}
|
|
54
145
|
export interface OperationLine {
|
|
55
146
|
id: string;
|
|
56
147
|
variantId: string;
|
|
@@ -60,10 +151,36 @@ export interface OperationLine {
|
|
|
60
151
|
maxQuantity: number;
|
|
61
152
|
recommendedQuantity: number;
|
|
62
153
|
}
|
|
154
|
+
export interface GetShopOperationsResponse extends PaginatedResponse<Operation> {
|
|
155
|
+
}
|
|
63
156
|
export interface GetOperationsResponse extends PaginatedResponse<Operation> {
|
|
64
157
|
}
|
|
158
|
+
export interface GetShopOperationResponse extends Operation {
|
|
159
|
+
}
|
|
65
160
|
export interface GetOperationResponse extends Operation {
|
|
66
161
|
}
|
|
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
|
+
}
|
|
67
172
|
export interface GetOperationLinesResponse extends PaginatedResponse<OperationLine> {
|
|
68
173
|
}
|
|
174
|
+
/** @deprecated Alias for {@link GetOperationsParams} — same as v3.0.0 `getOperations`. */
|
|
175
|
+
export type GetAdminOperationsParams = GetOperationsParams;
|
|
176
|
+
/** @deprecated Alias for {@link GetOperationParams} — same as v3.0.0 `getOperation`. */
|
|
177
|
+
export type GetAdminOperationParams = GetOperationParams;
|
|
178
|
+
/** @deprecated Alias for {@link GetOperationLinesParams} — same as v3.0.0 `getOperationLines`. */
|
|
179
|
+
export type GetAdminOperationLinesParams = GetOperationLinesParams;
|
|
180
|
+
/** @deprecated Alias for {@link GetOperationsResponse}. */
|
|
181
|
+
export type GetAdminOperationsResponse = GetOperationsResponse;
|
|
182
|
+
/** @deprecated Alias for {@link GetOperationResponse}. */
|
|
183
|
+
export type GetAdminOperationResponse = GetOperationResponse;
|
|
184
|
+
/** @deprecated Alias for {@link GetOperationLinesResponse}. */
|
|
185
|
+
export type GetAdminOperationLinesResponse = GetOperationLinesResponse;
|
|
69
186
|
//# 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,EAAY,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAM5D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;AACjD,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;AAC9D,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC;AAEhD,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAMD,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;I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