@deliverart/sdk-js-company 2.6.1 → 2.6.3
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 +1 -1
- package/dist/index.d.cts +4 -34
- package/dist/index.d.ts +4 -34
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -11282,7 +11282,7 @@ var import_sdk_js_core3 = require("@deliverart/sdk-js-core");
|
|
|
11282
11282
|
var import_sdk_js_global_types3 = require("@deliverart/sdk-js-global-types");
|
|
11283
11283
|
var getCompaniesQuerySchema = companiesQuerySchema;
|
|
11284
11284
|
var getCompaniesInputSchema = external_exports.undefined();
|
|
11285
|
-
var getCompaniesResponseSchema = (0, import_sdk_js_global_types3.
|
|
11285
|
+
var getCompaniesResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(companySchema);
|
|
11286
11286
|
var GetCompanies = class extends import_sdk_js_core3.AbstractApiRequest {
|
|
11287
11287
|
constructor(options) {
|
|
11288
11288
|
super(void 0, options);
|
package/dist/index.d.cts
CHANGED
|
@@ -261,7 +261,7 @@ declare const getCompaniesQuerySchema: z.ZodObject<{
|
|
|
261
261
|
type GetCompaniesQueryParams = z.infer<typeof getCompaniesQuerySchema>;
|
|
262
262
|
declare const getCompaniesInputSchema: z.ZodUndefined;
|
|
263
263
|
type GetCompaniesInput = z.input<typeof getCompaniesInputSchema>;
|
|
264
|
-
declare const getCompaniesResponseSchema: z.
|
|
264
|
+
declare const getCompaniesResponseSchema: z.ZodObject<{
|
|
265
265
|
data: z.ZodArray<z.ZodObject<{
|
|
266
266
|
id: z.ZodString;
|
|
267
267
|
businessName: z.ZodString;
|
|
@@ -286,29 +286,14 @@ declare const getCompaniesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
286
286
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
287
287
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
288
288
|
}, z.core.$strip>;
|
|
289
|
-
}, z.core.$strip
|
|
290
|
-
id: z.ZodString;
|
|
291
|
-
businessName: z.ZodString;
|
|
292
|
-
vat: z.ZodString;
|
|
293
|
-
taxCode: z.ZodNullable<z.ZodString>;
|
|
294
|
-
operationalAddress: z.ZodObject<{
|
|
295
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
296
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
-
}, z.core.$strip>;
|
|
302
|
-
createdAt: z.ZodString;
|
|
303
|
-
updatedAt: z.ZodString;
|
|
304
|
-
}, z.core.$strip>>]>;
|
|
289
|
+
}, z.core.$strip>;
|
|
305
290
|
type GetCompaniesResponse = z.infer<typeof getCompaniesResponseSchema>;
|
|
306
291
|
declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSchema, typeof getCompaniesResponseSchema, GetCompaniesQueryParams> {
|
|
307
292
|
readonly method: "GET";
|
|
308
293
|
readonly contentType: "application/json";
|
|
309
294
|
readonly accept: "application/json";
|
|
310
295
|
readonly inputSchema: z.ZodUndefined;
|
|
311
|
-
readonly outputSchema: z.
|
|
296
|
+
readonly outputSchema: z.ZodObject<{
|
|
312
297
|
data: z.ZodArray<z.ZodObject<{
|
|
313
298
|
id: z.ZodString;
|
|
314
299
|
businessName: z.ZodString;
|
|
@@ -333,22 +318,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
|
|
|
333
318
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
334
319
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
335
320
|
}, z.core.$strip>;
|
|
336
|
-
}, z.core.$strip
|
|
337
|
-
id: z.ZodString;
|
|
338
|
-
businessName: z.ZodString;
|
|
339
|
-
vat: z.ZodString;
|
|
340
|
-
taxCode: z.ZodNullable<z.ZodString>;
|
|
341
|
-
operationalAddress: z.ZodObject<{
|
|
342
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
|
-
}, z.core.$strip>;
|
|
349
|
-
createdAt: z.ZodString;
|
|
350
|
-
updatedAt: z.ZodString;
|
|
351
|
-
}, z.core.$strip>>]>;
|
|
321
|
+
}, z.core.$strip>;
|
|
352
322
|
readonly querySchema: z.ZodObject<{
|
|
353
323
|
businessName: z.ZodOptional<z.ZodString>;
|
|
354
324
|
vat: z.ZodOptional<z.ZodString>;
|
package/dist/index.d.ts
CHANGED
|
@@ -261,7 +261,7 @@ declare const getCompaniesQuerySchema: z.ZodObject<{
|
|
|
261
261
|
type GetCompaniesQueryParams = z.infer<typeof getCompaniesQuerySchema>;
|
|
262
262
|
declare const getCompaniesInputSchema: z.ZodUndefined;
|
|
263
263
|
type GetCompaniesInput = z.input<typeof getCompaniesInputSchema>;
|
|
264
|
-
declare const getCompaniesResponseSchema: z.
|
|
264
|
+
declare const getCompaniesResponseSchema: z.ZodObject<{
|
|
265
265
|
data: z.ZodArray<z.ZodObject<{
|
|
266
266
|
id: z.ZodString;
|
|
267
267
|
businessName: z.ZodString;
|
|
@@ -286,29 +286,14 @@ declare const getCompaniesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
286
286
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
287
287
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
288
288
|
}, z.core.$strip>;
|
|
289
|
-
}, z.core.$strip
|
|
290
|
-
id: z.ZodString;
|
|
291
|
-
businessName: z.ZodString;
|
|
292
|
-
vat: z.ZodString;
|
|
293
|
-
taxCode: z.ZodNullable<z.ZodString>;
|
|
294
|
-
operationalAddress: z.ZodObject<{
|
|
295
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
296
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
-
}, z.core.$strip>;
|
|
302
|
-
createdAt: z.ZodString;
|
|
303
|
-
updatedAt: z.ZodString;
|
|
304
|
-
}, z.core.$strip>>]>;
|
|
289
|
+
}, z.core.$strip>;
|
|
305
290
|
type GetCompaniesResponse = z.infer<typeof getCompaniesResponseSchema>;
|
|
306
291
|
declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSchema, typeof getCompaniesResponseSchema, GetCompaniesQueryParams> {
|
|
307
292
|
readonly method: "GET";
|
|
308
293
|
readonly contentType: "application/json";
|
|
309
294
|
readonly accept: "application/json";
|
|
310
295
|
readonly inputSchema: z.ZodUndefined;
|
|
311
|
-
readonly outputSchema: z.
|
|
296
|
+
readonly outputSchema: z.ZodObject<{
|
|
312
297
|
data: z.ZodArray<z.ZodObject<{
|
|
313
298
|
id: z.ZodString;
|
|
314
299
|
businessName: z.ZodString;
|
|
@@ -333,22 +318,7 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
|
|
|
333
318
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
334
319
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
335
320
|
}, z.core.$strip>;
|
|
336
|
-
}, z.core.$strip
|
|
337
|
-
id: z.ZodString;
|
|
338
|
-
businessName: z.ZodString;
|
|
339
|
-
vat: z.ZodString;
|
|
340
|
-
taxCode: z.ZodNullable<z.ZodString>;
|
|
341
|
-
operationalAddress: z.ZodObject<{
|
|
342
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
|
-
}, z.core.$strip>;
|
|
349
|
-
createdAt: z.ZodString;
|
|
350
|
-
updatedAt: z.ZodString;
|
|
351
|
-
}, z.core.$strip>>]>;
|
|
321
|
+
}, z.core.$strip>;
|
|
352
322
|
readonly querySchema: z.ZodObject<{
|
|
353
323
|
businessName: z.ZodOptional<z.ZodString>;
|
|
354
324
|
vat: z.ZodOptional<z.ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -11239,10 +11239,10 @@ var DeleteCompany = class extends AbstractApiRequest2 {
|
|
|
11239
11239
|
|
|
11240
11240
|
// src/requests/GetCompanies.ts
|
|
11241
11241
|
import { AbstractApiRequest as AbstractApiRequest3 } from "@deliverart/sdk-js-core";
|
|
11242
|
-
import {
|
|
11242
|
+
import { createPaginatedSchema } from "@deliverart/sdk-js-global-types";
|
|
11243
11243
|
var getCompaniesQuerySchema = companiesQuerySchema;
|
|
11244
11244
|
var getCompaniesInputSchema = external_exports.undefined();
|
|
11245
|
-
var getCompaniesResponseSchema =
|
|
11245
|
+
var getCompaniesResponseSchema = createPaginatedSchema(companySchema);
|
|
11246
11246
|
var GetCompanies = class extends AbstractApiRequest3 {
|
|
11247
11247
|
constructor(options) {
|
|
11248
11248
|
super(void 0, options);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-company",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Company Management",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.6.
|
|
22
|
-
"@deliverart/sdk-js-global-types": "2.6.
|
|
23
|
-
"@deliverart/sdk-js-user": "2.6.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.6.3",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.6.3",
|
|
23
|
+
"@deliverart/sdk-js-user": "2.6.3"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|