@deliverart/sdk-js-company 2.6.0 → 2.6.1
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 +34 -4
- package/dist/index.d.ts +34 -4
- 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.mixedPaginationSchema)(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.ZodObject<{
|
|
264
|
+
declare const getCompaniesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
265
265
|
data: z.ZodArray<z.ZodObject<{
|
|
266
266
|
id: z.ZodString;
|
|
267
267
|
businessName: z.ZodString;
|
|
@@ -286,14 +286,29 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
|
|
|
286
286
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
287
287
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
288
288
|
}, z.core.$strip>;
|
|
289
|
-
}, z.core.$strip
|
|
289
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
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>>]>;
|
|
290
305
|
type GetCompaniesResponse = z.infer<typeof getCompaniesResponseSchema>;
|
|
291
306
|
declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSchema, typeof getCompaniesResponseSchema, GetCompaniesQueryParams> {
|
|
292
307
|
readonly method: "GET";
|
|
293
308
|
readonly contentType: "application/json";
|
|
294
309
|
readonly accept: "application/json";
|
|
295
310
|
readonly inputSchema: z.ZodUndefined;
|
|
296
|
-
readonly outputSchema: z.ZodObject<{
|
|
311
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
297
312
|
data: z.ZodArray<z.ZodObject<{
|
|
298
313
|
id: z.ZodString;
|
|
299
314
|
businessName: z.ZodString;
|
|
@@ -318,7 +333,22 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
|
|
|
318
333
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
319
334
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
320
335
|
}, z.core.$strip>;
|
|
321
|
-
}, z.core.$strip
|
|
336
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
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>>]>;
|
|
322
352
|
readonly querySchema: z.ZodObject<{
|
|
323
353
|
businessName: z.ZodOptional<z.ZodString>;
|
|
324
354
|
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.ZodObject<{
|
|
264
|
+
declare const getCompaniesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
265
265
|
data: z.ZodArray<z.ZodObject<{
|
|
266
266
|
id: z.ZodString;
|
|
267
267
|
businessName: z.ZodString;
|
|
@@ -286,14 +286,29 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
|
|
|
286
286
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
287
287
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
288
288
|
}, z.core.$strip>;
|
|
289
|
-
}, z.core.$strip
|
|
289
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
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>>]>;
|
|
290
305
|
type GetCompaniesResponse = z.infer<typeof getCompaniesResponseSchema>;
|
|
291
306
|
declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSchema, typeof getCompaniesResponseSchema, GetCompaniesQueryParams> {
|
|
292
307
|
readonly method: "GET";
|
|
293
308
|
readonly contentType: "application/json";
|
|
294
309
|
readonly accept: "application/json";
|
|
295
310
|
readonly inputSchema: z.ZodUndefined;
|
|
296
|
-
readonly outputSchema: z.ZodObject<{
|
|
311
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
297
312
|
data: z.ZodArray<z.ZodObject<{
|
|
298
313
|
id: z.ZodString;
|
|
299
314
|
businessName: z.ZodString;
|
|
@@ -318,7 +333,22 @@ declare class GetCompanies extends AbstractApiRequest<typeof getCompaniesInputSc
|
|
|
318
333
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
319
334
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
320
335
|
}, z.core.$strip>;
|
|
321
|
-
}, z.core.$strip
|
|
336
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
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>>]>;
|
|
322
352
|
readonly querySchema: z.ZodObject<{
|
|
323
353
|
businessName: z.ZodOptional<z.ZodString>;
|
|
324
354
|
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 { mixedPaginationSchema } from "@deliverart/sdk-js-global-types";
|
|
11243
11243
|
var getCompaniesQuerySchema = companiesQuerySchema;
|
|
11244
11244
|
var getCompaniesInputSchema = external_exports.undefined();
|
|
11245
|
-
var getCompaniesResponseSchema =
|
|
11245
|
+
var getCompaniesResponseSchema = mixedPaginationSchema(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.1",
|
|
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.1",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.6.1",
|
|
23
|
+
"@deliverart/sdk-js-user": "2.6.1"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|