@deliverart/sdk-js-api-token 0.0.0-dev-20260721002647
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/index.cjs +504 -0
- package/dist/index.d.cts +2856 -0
- package/dist/index.d.ts +2856 -0
- package/dist/index.js +426 -0
- package/package.json +34 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
// src/models.ts
|
|
2
|
+
import { datetimeSchema, sortDirSchema } from "@deliverart/sdk-js-global-types";
|
|
3
|
+
import { pointOfSaleIriSchema } from "@deliverart/sdk-js-point-of-sale";
|
|
4
|
+
import { securityRoleSchema } from "@deliverart/sdk-js-user";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
|
|
7
|
+
// src/types.ts
|
|
8
|
+
import { iriNullableSchema, iriSchema } from "@deliverart/sdk-js-global-types";
|
|
9
|
+
import {
|
|
10
|
+
apiTokenModes,
|
|
11
|
+
apiTokenModeSchema,
|
|
12
|
+
apiTokenTypes,
|
|
13
|
+
apiTokenTypeSchema
|
|
14
|
+
} from "@deliverart/sdk-js-global-types";
|
|
15
|
+
var apiTokenIriSchema = iriSchema("/api_tokens/:id");
|
|
16
|
+
var apiTokenNullableIriSchema = iriNullableSchema("/api_tokens/:id");
|
|
17
|
+
var apiTokenFullAccessIriSchema = iriSchema("/api_tokens/:id");
|
|
18
|
+
var apiTokenFullAccessNullableIriSchema = iriNullableSchema("/api_tokens/full_access/:id");
|
|
19
|
+
var apiTokenPointOfSaleIriSchema = iriSchema("/api_tokens/:id");
|
|
20
|
+
var apiTokenPointOfSaleNullableIriSchema = iriNullableSchema(
|
|
21
|
+
"/api_tokens/point_of_sale/:id"
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
// src/models.ts
|
|
25
|
+
var apiTokenSchema = z.object({
|
|
26
|
+
id: z.string(),
|
|
27
|
+
name: z.string().min(3, "name.required").max(80, "name.too_long"),
|
|
28
|
+
mode: apiTokenModeSchema,
|
|
29
|
+
token: z.string(),
|
|
30
|
+
roles: z.array(securityRoleSchema),
|
|
31
|
+
type: apiTokenTypeSchema,
|
|
32
|
+
createdAt: datetimeSchema,
|
|
33
|
+
expiresAt: datetimeSchema.nullable(),
|
|
34
|
+
lastUsedAt: datetimeSchema.nullable()
|
|
35
|
+
});
|
|
36
|
+
var apiTokenListItemSchema = apiTokenSchema.omit({
|
|
37
|
+
token: true
|
|
38
|
+
});
|
|
39
|
+
var apiTokenFullAccessSchema = apiTokenSchema.extend({
|
|
40
|
+
type: z.literal("full_access")
|
|
41
|
+
});
|
|
42
|
+
var apiTokenFullAccessListItemSchema = apiTokenFullAccessSchema.omit({
|
|
43
|
+
token: true
|
|
44
|
+
});
|
|
45
|
+
var apiTokenPointOfSaleSchema = apiTokenSchema.extend({
|
|
46
|
+
type: z.literal("point_of_sale"),
|
|
47
|
+
pointOfSale: pointOfSaleIriSchema
|
|
48
|
+
});
|
|
49
|
+
var apiTokenPointOfSaleListItemSchema = apiTokenPointOfSaleSchema.omit({
|
|
50
|
+
token: true,
|
|
51
|
+
pointOfSale: true
|
|
52
|
+
});
|
|
53
|
+
var apiTokensQuerySchema = z.object({
|
|
54
|
+
token: z.union([z.string(), z.array(z.string())]).optional(),
|
|
55
|
+
roles: z.union([securityRoleSchema, z.array(securityRoleSchema)]).optional(),
|
|
56
|
+
type: apiTokenTypeSchema.optional(),
|
|
57
|
+
"order[createdAt]": sortDirSchema.optional(),
|
|
58
|
+
"order[expiresAt]": sortDirSchema.optional(),
|
|
59
|
+
page: z.coerce.number().optional()
|
|
60
|
+
}).extend({
|
|
61
|
+
"createdAt[before]": z.string().optional(),
|
|
62
|
+
"createdAt[strictly_before]": z.string().optional(),
|
|
63
|
+
"createdAt[after]": z.string().optional(),
|
|
64
|
+
"createdAt[strictly_after]": z.string().optional(),
|
|
65
|
+
"expiresAt[before]": z.string().optional(),
|
|
66
|
+
"expiresAt[strictly_before]": z.string().optional(),
|
|
67
|
+
"expiresAt[after]": z.string().optional(),
|
|
68
|
+
"expiresAt[strictly_after]": z.string().optional()
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
// src/requests/api-tokens/DeleteApiToken.ts
|
|
72
|
+
import { AbstractApiRequest } from "@deliverart/sdk-js-core";
|
|
73
|
+
import { emptyResponseSchema } from "@deliverart/sdk-js-global-types";
|
|
74
|
+
import { z as z2 } from "zod";
|
|
75
|
+
var deleteApiTokenInputSchema = z2.undefined();
|
|
76
|
+
var deleteApiTokenResponseSchema = emptyResponseSchema;
|
|
77
|
+
var DeleteApiToken = class extends AbstractApiRequest {
|
|
78
|
+
constructor(apiTokenId) {
|
|
79
|
+
super(void 0);
|
|
80
|
+
this.method = "DELETE";
|
|
81
|
+
this.contentType = "application/json";
|
|
82
|
+
this.accept = "application/json";
|
|
83
|
+
this.inputSchema = deleteApiTokenInputSchema;
|
|
84
|
+
this.outputSchema = deleteApiTokenResponseSchema;
|
|
85
|
+
this.querySchema = void 0;
|
|
86
|
+
this.headersSchema = void 0;
|
|
87
|
+
this.apiTokenId = apiTokenId;
|
|
88
|
+
}
|
|
89
|
+
getPath() {
|
|
90
|
+
return `/api_tokens/${this.apiTokenId}`;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
// src/requests/api-tokens/GetApiTokenDetails.ts
|
|
95
|
+
import { AbstractApiRequest as AbstractApiRequest2 } from "@deliverart/sdk-js-core";
|
|
96
|
+
import { z as z3 } from "zod";
|
|
97
|
+
var getApiTokenDetailsInputSchema = z3.undefined();
|
|
98
|
+
var getApiTokenDetailsResponseSchema = apiTokenSchema;
|
|
99
|
+
var GetApiTokenDetails = class extends AbstractApiRequest2 {
|
|
100
|
+
constructor(apiTokenId) {
|
|
101
|
+
super(void 0);
|
|
102
|
+
this.method = "GET";
|
|
103
|
+
this.contentType = "application/json";
|
|
104
|
+
this.accept = "application/json";
|
|
105
|
+
this.inputSchema = getApiTokenDetailsInputSchema;
|
|
106
|
+
this.outputSchema = getApiTokenDetailsResponseSchema;
|
|
107
|
+
this.querySchema = void 0;
|
|
108
|
+
this.headersSchema = void 0;
|
|
109
|
+
this.apiTokenId = apiTokenId;
|
|
110
|
+
}
|
|
111
|
+
getPath() {
|
|
112
|
+
return `/api_tokens/${this.apiTokenId}`;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// src/requests/api-tokens/GetApiTokens.ts
|
|
117
|
+
import { AbstractApiRequest as AbstractApiRequest3 } from "@deliverart/sdk-js-core";
|
|
118
|
+
import { createPaginatedSchema } from "@deliverart/sdk-js-global-types";
|
|
119
|
+
import { z as z4 } from "zod";
|
|
120
|
+
var getApiTokensQuerySchema = apiTokensQuerySchema;
|
|
121
|
+
var getApiTokensInputSchema = z4.undefined();
|
|
122
|
+
var getApiTokensResponseSchema = createPaginatedSchema(apiTokenListItemSchema);
|
|
123
|
+
var GetApiTokens = class extends AbstractApiRequest3 {
|
|
124
|
+
constructor(options) {
|
|
125
|
+
super(void 0, options);
|
|
126
|
+
this.method = "GET";
|
|
127
|
+
this.contentType = "application/json";
|
|
128
|
+
this.accept = "application/json";
|
|
129
|
+
this.inputSchema = getApiTokensInputSchema;
|
|
130
|
+
this.outputSchema = getApiTokensResponseSchema;
|
|
131
|
+
this.querySchema = getApiTokensQuerySchema;
|
|
132
|
+
this.headersSchema = void 0;
|
|
133
|
+
this.listItemSchema = apiTokenListItemSchema;
|
|
134
|
+
this.paginationDefaultEnabled = true;
|
|
135
|
+
}
|
|
136
|
+
getPath() {
|
|
137
|
+
return "/api_tokens";
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
// src/requests/api-tokens-full-access/CreateApiTokenFullAccess.ts
|
|
142
|
+
import { AbstractApiRequest as AbstractApiRequest4 } from "@deliverart/sdk-js-core";
|
|
143
|
+
import { z as z5 } from "zod";
|
|
144
|
+
var createApiTokenFullAccessInputSchema = apiTokenFullAccessSchema.pick({
|
|
145
|
+
name: true,
|
|
146
|
+
mode: true,
|
|
147
|
+
roles: true
|
|
148
|
+
}).extend({
|
|
149
|
+
expiresIn: z5.string().nullable()
|
|
150
|
+
}).required();
|
|
151
|
+
var createApiTokenFullAccessResponseSchema = apiTokenFullAccessSchema;
|
|
152
|
+
var CreateApiTokenFullAccess = class extends AbstractApiRequest4 {
|
|
153
|
+
constructor(input) {
|
|
154
|
+
super(input);
|
|
155
|
+
this.method = "POST";
|
|
156
|
+
this.contentType = "application/json";
|
|
157
|
+
this.accept = "application/json";
|
|
158
|
+
this.inputSchema = createApiTokenFullAccessInputSchema;
|
|
159
|
+
this.outputSchema = createApiTokenFullAccessResponseSchema;
|
|
160
|
+
this.querySchema = void 0;
|
|
161
|
+
this.headersSchema = void 0;
|
|
162
|
+
}
|
|
163
|
+
getPath() {
|
|
164
|
+
return "/api_tokens/full_access";
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
// src/requests/api-tokens-full-access/DeleteApiTokenFullAccess.ts
|
|
169
|
+
import { AbstractApiRequest as AbstractApiRequest5 } from "@deliverart/sdk-js-core";
|
|
170
|
+
import { emptyResponseSchema as emptyResponseSchema2 } from "@deliverart/sdk-js-global-types";
|
|
171
|
+
import { z as z6 } from "zod";
|
|
172
|
+
var deleteApiTokenFullAccessInputSchema = z6.undefined();
|
|
173
|
+
var deleteApiTokenFullAccessResponseSchema = emptyResponseSchema2;
|
|
174
|
+
var DeleteApiTokenFullAccess = class extends AbstractApiRequest5 {
|
|
175
|
+
constructor(apiTokenId) {
|
|
176
|
+
super(void 0);
|
|
177
|
+
this.method = "DELETE";
|
|
178
|
+
this.contentType = "application/json";
|
|
179
|
+
this.accept = "application/json";
|
|
180
|
+
this.inputSchema = deleteApiTokenFullAccessInputSchema;
|
|
181
|
+
this.outputSchema = deleteApiTokenFullAccessResponseSchema;
|
|
182
|
+
this.querySchema = void 0;
|
|
183
|
+
this.headersSchema = void 0;
|
|
184
|
+
this.apiTokenId = apiTokenId;
|
|
185
|
+
}
|
|
186
|
+
getPath() {
|
|
187
|
+
return `/api_tokens/full_access/${this.apiTokenId}`;
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
// src/requests/api-tokens-full-access/GetApiTokenFullAccessDetails.ts
|
|
192
|
+
import { AbstractApiRequest as AbstractApiRequest6 } from "@deliverart/sdk-js-core";
|
|
193
|
+
import { z as z7 } from "zod";
|
|
194
|
+
var getApiTokenFullAccessDetailsInputSchema = z7.undefined();
|
|
195
|
+
var getApiTokenFullAccessDetailsResponseSchema = apiTokenFullAccessSchema;
|
|
196
|
+
var GetApiTokenFullAccessDetails = class extends AbstractApiRequest6 {
|
|
197
|
+
constructor(apiTokenId) {
|
|
198
|
+
super(void 0);
|
|
199
|
+
this.method = "GET";
|
|
200
|
+
this.contentType = "application/json";
|
|
201
|
+
this.accept = "application/json";
|
|
202
|
+
this.inputSchema = getApiTokenFullAccessDetailsInputSchema;
|
|
203
|
+
this.outputSchema = getApiTokenFullAccessDetailsResponseSchema;
|
|
204
|
+
this.querySchema = void 0;
|
|
205
|
+
this.headersSchema = void 0;
|
|
206
|
+
this.apiTokenId = apiTokenId;
|
|
207
|
+
}
|
|
208
|
+
getPath() {
|
|
209
|
+
return `/api_tokens/full_access/${this.apiTokenId}`;
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
// src/requests/api-tokens-full-access/GetApiTokenFullAccessList.ts
|
|
214
|
+
import { AbstractApiRequest as AbstractApiRequest7 } from "@deliverart/sdk-js-core";
|
|
215
|
+
import { createPaginatedSchema as createPaginatedSchema2 } from "@deliverart/sdk-js-global-types";
|
|
216
|
+
import { z as z8 } from "zod";
|
|
217
|
+
var getApiTokenFullAccessListQuerySchema = apiTokensQuerySchema;
|
|
218
|
+
var getApiTokenFullAccessListInputSchema = z8.undefined();
|
|
219
|
+
var getApiTokenFullAccessListResponseSchema = createPaginatedSchema2(
|
|
220
|
+
apiTokenFullAccessListItemSchema
|
|
221
|
+
);
|
|
222
|
+
var GetApiTokenFullAccessList = class extends AbstractApiRequest7 {
|
|
223
|
+
constructor(options) {
|
|
224
|
+
super(void 0, options);
|
|
225
|
+
this.method = "GET";
|
|
226
|
+
this.contentType = "application/json";
|
|
227
|
+
this.accept = "application/json";
|
|
228
|
+
this.inputSchema = getApiTokenFullAccessListInputSchema;
|
|
229
|
+
this.outputSchema = getApiTokenFullAccessListResponseSchema;
|
|
230
|
+
this.querySchema = getApiTokenFullAccessListQuerySchema;
|
|
231
|
+
this.headersSchema = void 0;
|
|
232
|
+
this.listItemSchema = apiTokenFullAccessListItemSchema;
|
|
233
|
+
this.paginationDefaultEnabled = true;
|
|
234
|
+
}
|
|
235
|
+
getPath() {
|
|
236
|
+
return "/api_tokens/full_access";
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
// src/requests/api-tokens-point-of-sale/CreateApiTokenPointOfSale.ts
|
|
241
|
+
import { AbstractApiRequest as AbstractApiRequest8 } from "@deliverart/sdk-js-core";
|
|
242
|
+
import { z as z9 } from "zod";
|
|
243
|
+
var createApiTokenPointOfSaleInputSchema = apiTokenPointOfSaleSchema.pick({
|
|
244
|
+
name: true,
|
|
245
|
+
mode: true,
|
|
246
|
+
roles: true,
|
|
247
|
+
pointOfSale: true
|
|
248
|
+
}).extend({
|
|
249
|
+
expiresIn: z9.string().nullable()
|
|
250
|
+
}).required();
|
|
251
|
+
var createApiTokenPointOfSaleResponseSchema = apiTokenPointOfSaleSchema;
|
|
252
|
+
var CreateApiTokenPointOfSale = class extends AbstractApiRequest8 {
|
|
253
|
+
constructor(input) {
|
|
254
|
+
super(input);
|
|
255
|
+
this.method = "POST";
|
|
256
|
+
this.contentType = "application/json";
|
|
257
|
+
this.accept = "application/json";
|
|
258
|
+
this.inputSchema = createApiTokenPointOfSaleInputSchema;
|
|
259
|
+
this.outputSchema = createApiTokenPointOfSaleResponseSchema;
|
|
260
|
+
this.querySchema = void 0;
|
|
261
|
+
this.headersSchema = void 0;
|
|
262
|
+
}
|
|
263
|
+
getPath() {
|
|
264
|
+
return "/api_tokens/point_of_sale";
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
// src/requests/api-tokens-point-of-sale/DeleteApiTokenPointOfSale.ts
|
|
269
|
+
import { AbstractApiRequest as AbstractApiRequest9 } from "@deliverart/sdk-js-core";
|
|
270
|
+
import { emptyResponseSchema as emptyResponseSchema3 } from "@deliverart/sdk-js-global-types";
|
|
271
|
+
import { z as z10 } from "zod";
|
|
272
|
+
var deleteApiTokenPointOfSaleInputSchema = z10.undefined();
|
|
273
|
+
var deleteApiTokenPointOfSaleResponseSchema = emptyResponseSchema3;
|
|
274
|
+
var DeleteApiTokenPointOfSale = class extends AbstractApiRequest9 {
|
|
275
|
+
constructor(apiTokenId) {
|
|
276
|
+
super(void 0);
|
|
277
|
+
this.method = "DELETE";
|
|
278
|
+
this.contentType = "application/json";
|
|
279
|
+
this.accept = "application/json";
|
|
280
|
+
this.inputSchema = deleteApiTokenPointOfSaleInputSchema;
|
|
281
|
+
this.outputSchema = deleteApiTokenPointOfSaleResponseSchema;
|
|
282
|
+
this.querySchema = void 0;
|
|
283
|
+
this.headersSchema = void 0;
|
|
284
|
+
this.apiTokenId = apiTokenId;
|
|
285
|
+
}
|
|
286
|
+
getPath() {
|
|
287
|
+
return `/api_tokens/point_of_sale/${this.apiTokenId}`;
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
// src/requests/api-tokens-point-of-sale/GetApiTokenPointOfSaleDetails.ts
|
|
292
|
+
import { AbstractApiRequest as AbstractApiRequest10 } from "@deliverart/sdk-js-core";
|
|
293
|
+
import { z as z11 } from "zod";
|
|
294
|
+
var getApiTokenPointOfSaleDetailsInputSchema = z11.undefined();
|
|
295
|
+
var getApiTokenPointOfSaleDetailsResponseSchema = apiTokenPointOfSaleSchema;
|
|
296
|
+
var GetApiTokenPointOfSaleDetails = class extends AbstractApiRequest10 {
|
|
297
|
+
constructor(apiTokenId) {
|
|
298
|
+
super(void 0);
|
|
299
|
+
this.method = "GET";
|
|
300
|
+
this.contentType = "application/json";
|
|
301
|
+
this.accept = "application/json";
|
|
302
|
+
this.inputSchema = getApiTokenPointOfSaleDetailsInputSchema;
|
|
303
|
+
this.outputSchema = getApiTokenPointOfSaleDetailsResponseSchema;
|
|
304
|
+
this.querySchema = void 0;
|
|
305
|
+
this.headersSchema = void 0;
|
|
306
|
+
this.apiTokenId = apiTokenId;
|
|
307
|
+
}
|
|
308
|
+
getPath() {
|
|
309
|
+
return `/api_tokens/point_of_sale/${this.apiTokenId}`;
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
// src/requests/api-tokens-point-of-sale/GetApiTokenPointOfSaleList.ts
|
|
314
|
+
import { AbstractApiRequest as AbstractApiRequest11 } from "@deliverart/sdk-js-core";
|
|
315
|
+
import { createPaginatedSchema as createPaginatedSchema3 } from "@deliverart/sdk-js-global-types";
|
|
316
|
+
import { z as z12 } from "zod";
|
|
317
|
+
var getApiTokenPointOfSaleListQuerySchema = apiTokensQuerySchema;
|
|
318
|
+
var getApiTokenPointOfSaleListInputSchema = z12.undefined();
|
|
319
|
+
var getApiTokenPointOfSaleListResponseSchema = createPaginatedSchema3(
|
|
320
|
+
apiTokenPointOfSaleListItemSchema
|
|
321
|
+
);
|
|
322
|
+
var GetApiTokenPointOfSaleList = class extends AbstractApiRequest11 {
|
|
323
|
+
constructor(options) {
|
|
324
|
+
super(void 0, options);
|
|
325
|
+
this.method = "GET";
|
|
326
|
+
this.contentType = "application/json";
|
|
327
|
+
this.accept = "application/json";
|
|
328
|
+
this.inputSchema = getApiTokenPointOfSaleListInputSchema;
|
|
329
|
+
this.outputSchema = getApiTokenPointOfSaleListResponseSchema;
|
|
330
|
+
this.querySchema = getApiTokenPointOfSaleListQuerySchema;
|
|
331
|
+
this.headersSchema = void 0;
|
|
332
|
+
this.listItemSchema = apiTokenPointOfSaleListItemSchema;
|
|
333
|
+
this.paginationDefaultEnabled = true;
|
|
334
|
+
}
|
|
335
|
+
getPath() {
|
|
336
|
+
return "/api_tokens/point_of_sale";
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
// src/requests/api-tokens-point-of-sale/GetApiTokenPointOfSaleListFromPointOfSale.ts
|
|
341
|
+
import { AbstractApiRequest as AbstractApiRequest12 } from "@deliverart/sdk-js-core";
|
|
342
|
+
import { createPaginatedSchema as createPaginatedSchema4 } from "@deliverart/sdk-js-global-types";
|
|
343
|
+
import { z as z13 } from "zod";
|
|
344
|
+
var getApiTokenPointOfSaleListFromPointOfSaleQuerySchema = apiTokensQuerySchema;
|
|
345
|
+
var getApiTokenPointOfSaleListFromPointOfSaleInputSchema = z13.undefined();
|
|
346
|
+
var getApiTokenPointOfSaleListFromPointOfSaleResponseSchema = createPaginatedSchema4(
|
|
347
|
+
apiTokenPointOfSaleListItemSchema
|
|
348
|
+
);
|
|
349
|
+
var GetApiTokenPointOfSaleListFromPointOfSale = class extends AbstractApiRequest12 {
|
|
350
|
+
constructor(pointOfSaleId, options) {
|
|
351
|
+
super(void 0, options);
|
|
352
|
+
this.method = "GET";
|
|
353
|
+
this.contentType = "application/json";
|
|
354
|
+
this.accept = "application/json";
|
|
355
|
+
this.inputSchema = getApiTokenPointOfSaleListFromPointOfSaleInputSchema;
|
|
356
|
+
this.outputSchema = getApiTokenPointOfSaleListFromPointOfSaleResponseSchema;
|
|
357
|
+
this.querySchema = getApiTokenPointOfSaleListFromPointOfSaleQuerySchema;
|
|
358
|
+
this.headersSchema = void 0;
|
|
359
|
+
// Declare list behavior
|
|
360
|
+
this.listItemSchema = apiTokenPointOfSaleListItemSchema;
|
|
361
|
+
this.paginationDefaultEnabled = true;
|
|
362
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
363
|
+
}
|
|
364
|
+
getPath() {
|
|
365
|
+
return `/point_of_sales/${this.pointOfSaleId}/api_tokens`;
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
export {
|
|
369
|
+
CreateApiTokenFullAccess,
|
|
370
|
+
CreateApiTokenPointOfSale,
|
|
371
|
+
DeleteApiToken,
|
|
372
|
+
DeleteApiTokenFullAccess,
|
|
373
|
+
DeleteApiTokenPointOfSale,
|
|
374
|
+
GetApiTokenDetails,
|
|
375
|
+
GetApiTokenFullAccessDetails,
|
|
376
|
+
GetApiTokenFullAccessList,
|
|
377
|
+
GetApiTokenPointOfSaleDetails,
|
|
378
|
+
GetApiTokenPointOfSaleList,
|
|
379
|
+
GetApiTokenPointOfSaleListFromPointOfSale,
|
|
380
|
+
GetApiTokens,
|
|
381
|
+
apiTokenFullAccessIriSchema,
|
|
382
|
+
apiTokenFullAccessListItemSchema,
|
|
383
|
+
apiTokenFullAccessNullableIriSchema,
|
|
384
|
+
apiTokenFullAccessSchema,
|
|
385
|
+
apiTokenIriSchema,
|
|
386
|
+
apiTokenListItemSchema,
|
|
387
|
+
apiTokenModeSchema,
|
|
388
|
+
apiTokenModes,
|
|
389
|
+
apiTokenNullableIriSchema,
|
|
390
|
+
apiTokenPointOfSaleIriSchema,
|
|
391
|
+
apiTokenPointOfSaleListItemSchema,
|
|
392
|
+
apiTokenPointOfSaleNullableIriSchema,
|
|
393
|
+
apiTokenPointOfSaleSchema,
|
|
394
|
+
apiTokenSchema,
|
|
395
|
+
apiTokenTypeSchema,
|
|
396
|
+
apiTokenTypes,
|
|
397
|
+
apiTokensQuerySchema,
|
|
398
|
+
createApiTokenFullAccessInputSchema,
|
|
399
|
+
createApiTokenFullAccessResponseSchema,
|
|
400
|
+
createApiTokenPointOfSaleInputSchema,
|
|
401
|
+
createApiTokenPointOfSaleResponseSchema,
|
|
402
|
+
deleteApiTokenFullAccessInputSchema,
|
|
403
|
+
deleteApiTokenFullAccessResponseSchema,
|
|
404
|
+
deleteApiTokenInputSchema,
|
|
405
|
+
deleteApiTokenPointOfSaleInputSchema,
|
|
406
|
+
deleteApiTokenPointOfSaleResponseSchema,
|
|
407
|
+
deleteApiTokenResponseSchema,
|
|
408
|
+
getApiTokenDetailsInputSchema,
|
|
409
|
+
getApiTokenDetailsResponseSchema,
|
|
410
|
+
getApiTokenFullAccessDetailsInputSchema,
|
|
411
|
+
getApiTokenFullAccessDetailsResponseSchema,
|
|
412
|
+
getApiTokenFullAccessListInputSchema,
|
|
413
|
+
getApiTokenFullAccessListQuerySchema,
|
|
414
|
+
getApiTokenFullAccessListResponseSchema,
|
|
415
|
+
getApiTokenPointOfSaleDetailsInputSchema,
|
|
416
|
+
getApiTokenPointOfSaleDetailsResponseSchema,
|
|
417
|
+
getApiTokenPointOfSaleListFromPointOfSaleInputSchema,
|
|
418
|
+
getApiTokenPointOfSaleListFromPointOfSaleQuerySchema,
|
|
419
|
+
getApiTokenPointOfSaleListFromPointOfSaleResponseSchema,
|
|
420
|
+
getApiTokenPointOfSaleListInputSchema,
|
|
421
|
+
getApiTokenPointOfSaleListQuerySchema,
|
|
422
|
+
getApiTokenPointOfSaleListResponseSchema,
|
|
423
|
+
getApiTokensInputSchema,
|
|
424
|
+
getApiTokensQuerySchema,
|
|
425
|
+
getApiTokensResponseSchema
|
|
426
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@deliverart/sdk-js-api-token",
|
|
3
|
+
"description": "Deliverart JavaScript SDK for API Token Management",
|
|
4
|
+
"version": "0.0.0-dev-20260721002647",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"tsup": {
|
|
9
|
+
"tsconfig": "./tsconfig.json"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"zod": "4.3.5",
|
|
22
|
+
"@deliverart/sdk-js-user": "0.0.0-dev-20260721002647",
|
|
23
|
+
"@deliverart/sdk-js-core": "0.0.0-dev-20260721002647",
|
|
24
|
+
"@deliverart/sdk-js-global-types": "0.0.0-dev-20260721002647",
|
|
25
|
+
"@deliverart/sdk-js-point-of-sale": "0.0.0-dev-20260721002647"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsup src/index.ts --dts --format esm,cjs",
|
|
32
|
+
"dev": "tsup src/index.ts --dts --watch"
|
|
33
|
+
}
|
|
34
|
+
}
|