@simpleapps-com/augur-api 0.8.10 → 0.8.12
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/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/services/customers/resources/customer.d.ts +4 -4
- package/dist/cjs/services/customers/schemas/customerCustomerIdQuotes.d.ts +10 -10
- package/dist/cjs/services/customers/schemas/customerCustomerIdQuotes.js +1 -1
- package/dist/cjs/services/customers/schemas/customerCustomerIdQuotesQuoteNo.d.ts +10 -10
- package/dist/cjs/services/customers/schemas/customerCustomerIdQuotesQuoteNo.js +1 -1
- package/dist/cjs/services/items/resources/item-favorites.d.ts +6 -6
- package/dist/cjs/services/items/schemas/itemFavorites.d.ts +5 -5
- package/dist/cjs/services/items/schemas/itemFavorites.d.ts.map +1 -1
- package/dist/cjs/services/items/schemas/itemFavorites.js +1 -1
- package/dist/cjs/services/items/schemas/itemFavorites.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/services/customers/resources/customer.d.ts +4 -4
- package/dist/esm/services/customers/schemas/customerCustomerIdQuotes.d.ts +10 -10
- package/dist/esm/services/customers/schemas/customerCustomerIdQuotes.js +1 -1
- package/dist/esm/services/customers/schemas/customerCustomerIdQuotesQuoteNo.d.ts +10 -10
- package/dist/esm/services/customers/schemas/customerCustomerIdQuotesQuoteNo.js +1 -1
- package/dist/esm/services/items/resources/item-favorites.d.ts +6 -6
- package/dist/esm/services/items/schemas/itemFavorites.d.ts +5 -5
- package/dist/esm/services/items/schemas/itemFavorites.d.ts.map +1 -1
- package/dist/esm/services/items/schemas/itemFavorites.js +1 -1
- package/dist/esm/services/items/schemas/itemFavorites.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/services/customers/resources/customer.d.ts +4 -4
- package/dist/types/services/customers/schemas/customerCustomerIdQuotes.d.ts +10 -10
- package/dist/types/services/customers/schemas/customerCustomerIdQuotesQuoteNo.d.ts +10 -10
- package/dist/types/services/items/resources/item-favorites.d.ts +6 -6
- package/dist/types/services/items/schemas/itemFavorites.d.ts +5 -5
- package/dist/types/services/items/schemas/itemFavorites.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "0.8.
|
|
1
|
+
export declare const VERSION = "0.8.12";
|
|
2
2
|
export { AugurAPI } from './client';
|
|
3
3
|
export { authenticateUserForSite, createCrossSiteAuthenticator, type CrossSiteAuthParams, type CrossSiteAuthResult, } from './utils/cross-site-auth';
|
|
4
4
|
export { AugurAPIConfig, RequestConfig, type AugurContext, ContextCreationError, } from './core/config';
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Basecamp2Client = exports.UPSClient = exports.SmartyStreetsClient = exports.SlackClient = exports.ShippingClient = exports.P21ApisClient = exports.LogisticsClient = exports.GregorovichClient = exports.BrandFolderClient = exports.AvalaraClient = exports.AgrWorkClient = exports.AgrInfoClient = exports.P21SismClient = exports.PaymentsClient = exports.P21PimClient = exports.OrdersClient = exports.CustomersClient = exports.AgrSiteClient = exports.LegacyClient = exports.NexusClient = exports.ItemsClient = exports.OpenSearchClient = exports.VMIClient = exports.PricingClient = exports.CommerceClient = exports.JoomlaClient = exports.PaginationParamsSchema = exports.HealthCheckDataSchema = exports.BaseResponseSchema = exports.RateLimitError = exports.NotFoundError = exports.AuthenticationError = exports.ValidationError = exports.AugurError = exports.ContextCreationError = exports.createCrossSiteAuthenticator = exports.authenticateUserForSite = exports.AugurAPI = exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.8.
|
|
4
|
+
exports.VERSION = '0.8.12';
|
|
5
5
|
// Main client
|
|
6
6
|
var client_1 = require("./client");
|
|
7
7
|
Object.defineProperty(exports, "AugurAPI", { enumerable: true, get: function () { return client_1.AugurAPI; } });
|
|
@@ -331,7 +331,7 @@ export declare function createCustomerResource(executeRequest: ExecuteRequest):
|
|
|
331
331
|
list: (customerId: number, params?: CustomerCustomerIdQuotesParams) => Promise<{
|
|
332
332
|
params: Record<string, unknown> | unknown[];
|
|
333
333
|
data: import("zod").objectInputType<{
|
|
334
|
-
|
|
334
|
+
orderNo: import("zod").ZodNumber;
|
|
335
335
|
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
336
336
|
options: Record<string, unknown> | unknown[];
|
|
337
337
|
status: number;
|
|
@@ -350,7 +350,7 @@ export declare function createCustomerResource(executeRequest: ExecuteRequest):
|
|
|
350
350
|
get: (customerId: number, quoteNo: number) => Promise<{
|
|
351
351
|
params: Record<string, unknown> | unknown[];
|
|
352
352
|
data: {
|
|
353
|
-
|
|
353
|
+
orderNo: number;
|
|
354
354
|
} & {
|
|
355
355
|
[k: string]: unknown;
|
|
356
356
|
};
|
|
@@ -459,10 +459,10 @@ export declare function createCustomerDataResource(customer: ReturnType<typeof c
|
|
|
459
459
|
};
|
|
460
460
|
quotes: {
|
|
461
461
|
list: (customerId: number, params?: CustomerCustomerIdQuotesParams) => Promise<import("zod").objectInputType<{
|
|
462
|
-
|
|
462
|
+
orderNo: import("zod").ZodNumber;
|
|
463
463
|
}, import("zod").ZodTypeAny, "passthrough">[]>;
|
|
464
464
|
get: (customerId: number, quoteNo: number) => Promise<{
|
|
465
|
-
|
|
465
|
+
orderNo: number;
|
|
466
466
|
} & {
|
|
467
467
|
[k: string]: unknown;
|
|
468
468
|
}>;
|
|
@@ -18,20 +18,20 @@ export declare const CustomerCustomerIdQuotesParamsSchema: z.ZodObject<{
|
|
|
18
18
|
}>;
|
|
19
19
|
/** Quote - key field only, passthrough for API flexibility */
|
|
20
20
|
export declare const QuoteSchema: z.ZodObject<{
|
|
21
|
-
|
|
21
|
+
orderNo: z.ZodNumber;
|
|
22
22
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
23
|
-
|
|
23
|
+
orderNo: z.ZodNumber;
|
|
24
24
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
25
|
-
|
|
25
|
+
orderNo: z.ZodNumber;
|
|
26
26
|
}, z.ZodTypeAny, "passthrough">>;
|
|
27
27
|
export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
28
28
|
count: z.ZodNumber;
|
|
29
29
|
data: z.ZodArray<z.ZodObject<{
|
|
30
|
-
|
|
30
|
+
orderNo: z.ZodNumber;
|
|
31
31
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
32
|
-
|
|
32
|
+
orderNo: z.ZodNumber;
|
|
33
33
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
34
|
-
|
|
34
|
+
orderNo: z.ZodNumber;
|
|
35
35
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
36
36
|
message: z.ZodString;
|
|
37
37
|
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
@@ -42,7 +42,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
params: Record<string, unknown> | unknown[];
|
|
44
44
|
data: z.objectOutputType<{
|
|
45
|
-
|
|
45
|
+
orderNo: z.ZodNumber;
|
|
46
46
|
}, z.ZodTypeAny, "passthrough">[];
|
|
47
47
|
options: Record<string, unknown> | unknown[];
|
|
48
48
|
status: number;
|
|
@@ -53,7 +53,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
53
53
|
}, {
|
|
54
54
|
params: Record<string, unknown> | unknown[];
|
|
55
55
|
data: z.objectInputType<{
|
|
56
|
-
|
|
56
|
+
orderNo: z.ZodNumber;
|
|
57
57
|
}, z.ZodTypeAny, "passthrough">[];
|
|
58
58
|
options: Record<string, unknown> | unknown[];
|
|
59
59
|
status: number;
|
|
@@ -64,7 +64,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
64
64
|
}>, {
|
|
65
65
|
params: Record<string, unknown> | unknown[];
|
|
66
66
|
data: z.objectOutputType<{
|
|
67
|
-
|
|
67
|
+
orderNo: z.ZodNumber;
|
|
68
68
|
}, z.ZodTypeAny, "passthrough">[];
|
|
69
69
|
options: Record<string, unknown> | unknown[];
|
|
70
70
|
status: number;
|
|
@@ -75,7 +75,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
75
75
|
}, {
|
|
76
76
|
params: Record<string, unknown> | unknown[];
|
|
77
77
|
data: z.objectInputType<{
|
|
78
|
-
|
|
78
|
+
orderNo: z.ZodNumber;
|
|
79
79
|
}, z.ZodTypeAny, "passthrough">[];
|
|
80
80
|
options: Record<string, unknown> | unknown[];
|
|
81
81
|
status: number;
|
|
@@ -9,6 +9,6 @@ exports.CustomerCustomerIdQuotesParamsSchema = schemas_1.BaseGetParamsSchema.ext
|
|
|
9
9
|
orderBy: zod_1.z.string().optional(),
|
|
10
10
|
});
|
|
11
11
|
/** Quote - key field only, passthrough for API flexibility */
|
|
12
|
-
exports.QuoteSchema = zod_1.z.object({
|
|
12
|
+
exports.QuoteSchema = zod_1.z.object({ orderNo: zod_1.z.coerce.number() }).passthrough();
|
|
13
13
|
exports.CustomerCustomerIdQuotesResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.QuoteSchema));
|
|
14
14
|
//# sourceMappingURL=customerCustomerIdQuotes.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/** Quote document - key field only, passthrough for API flexibility */
|
|
3
3
|
export declare const QuoteDocumentSchema: z.ZodObject<{
|
|
4
|
-
|
|
4
|
+
orderNo: z.ZodNumber;
|
|
5
5
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
6
|
-
|
|
6
|
+
orderNo: z.ZodNumber;
|
|
7
7
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
8
|
-
|
|
8
|
+
orderNo: z.ZodNumber;
|
|
9
9
|
}, z.ZodTypeAny, "passthrough">>;
|
|
10
10
|
export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
11
11
|
count: z.ZodNumber;
|
|
12
12
|
data: z.ZodObject<{
|
|
13
|
-
|
|
13
|
+
orderNo: z.ZodNumber;
|
|
14
14
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
15
|
-
|
|
15
|
+
orderNo: z.ZodNumber;
|
|
16
16
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
17
|
-
|
|
17
|
+
orderNo: z.ZodNumber;
|
|
18
18
|
}, z.ZodTypeAny, "passthrough">>;
|
|
19
19
|
message: z.ZodString;
|
|
20
20
|
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
@@ -25,7 +25,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
params: Record<string, unknown> | unknown[];
|
|
27
27
|
data: {
|
|
28
|
-
|
|
28
|
+
orderNo: number;
|
|
29
29
|
} & {
|
|
30
30
|
[k: string]: unknown;
|
|
31
31
|
};
|
|
@@ -38,7 +38,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
38
38
|
}, {
|
|
39
39
|
params: Record<string, unknown> | unknown[];
|
|
40
40
|
data: {
|
|
41
|
-
|
|
41
|
+
orderNo: number;
|
|
42
42
|
} & {
|
|
43
43
|
[k: string]: unknown;
|
|
44
44
|
};
|
|
@@ -51,7 +51,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
51
51
|
}>, {
|
|
52
52
|
params: Record<string, unknown> | unknown[];
|
|
53
53
|
data: {
|
|
54
|
-
|
|
54
|
+
orderNo: number;
|
|
55
55
|
} & {
|
|
56
56
|
[k: string]: unknown;
|
|
57
57
|
};
|
|
@@ -64,7 +64,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
64
64
|
}, {
|
|
65
65
|
params: Record<string, unknown> | unknown[];
|
|
66
66
|
data: {
|
|
67
|
-
|
|
67
|
+
orderNo: number;
|
|
68
68
|
} & {
|
|
69
69
|
[k: string]: unknown;
|
|
70
70
|
};
|
|
@@ -4,6 +4,6 @@ exports.CustomerCustomerIdQuotesQuoteNoResponseSchema = exports.QuoteDocumentSch
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const schemas_1 = require("../../../core/schemas");
|
|
6
6
|
/** Quote document - key field only, passthrough for API flexibility */
|
|
7
|
-
exports.QuoteDocumentSchema = zod_1.z.object({
|
|
7
|
+
exports.QuoteDocumentSchema = zod_1.z.object({ orderNo: zod_1.z.coerce.number() }).passthrough();
|
|
8
8
|
exports.CustomerCustomerIdQuotesQuoteNoResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.QuoteDocumentSchema);
|
|
9
9
|
//# sourceMappingURL=customerCustomerIdQuotesQuoteNo.js.map
|
|
@@ -34,13 +34,13 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
34
34
|
*/
|
|
35
35
|
create: (usersId: number, data: unknown) => Promise<{
|
|
36
36
|
params: Record<string, unknown> | unknown[];
|
|
37
|
-
data: number | null;
|
|
38
37
|
options: Record<string, unknown> | unknown[];
|
|
39
38
|
status: number;
|
|
40
39
|
message: string;
|
|
41
40
|
count: number;
|
|
42
41
|
total: number;
|
|
43
42
|
totalResults: number;
|
|
43
|
+
data?: unknown;
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
46
46
|
* Update user favorite
|
|
@@ -52,13 +52,13 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
52
52
|
*/
|
|
53
53
|
update: (usersId: number, invMastUid: number, data: unknown) => Promise<{
|
|
54
54
|
params: Record<string, unknown> | unknown[];
|
|
55
|
-
data: number | null;
|
|
56
55
|
options: Record<string, unknown> | unknown[];
|
|
57
56
|
status: number;
|
|
58
57
|
message: string;
|
|
59
58
|
count: number;
|
|
60
59
|
total: number;
|
|
61
60
|
totalResults: number;
|
|
61
|
+
data?: unknown;
|
|
62
62
|
}>;
|
|
63
63
|
/**
|
|
64
64
|
* Delete user favorite
|
|
@@ -70,13 +70,13 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
70
70
|
*/
|
|
71
71
|
delete: (usersId: number, invMastUid: number) => Promise<{
|
|
72
72
|
params: Record<string, unknown> | unknown[];
|
|
73
|
-
data: number | null;
|
|
74
73
|
options: Record<string, unknown> | unknown[];
|
|
75
74
|
status: number;
|
|
76
75
|
message: string;
|
|
77
76
|
count: number;
|
|
78
77
|
total: number;
|
|
79
78
|
totalResults: number;
|
|
79
|
+
data?: unknown;
|
|
80
80
|
}>;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
@@ -84,9 +84,9 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
84
84
|
*/
|
|
85
85
|
export declare function createItemFavoritesDataResource(itemFavorites: ReturnType<typeof createItemFavoritesResource>): {
|
|
86
86
|
list: (usersId: number, params?: Record<string, unknown>) => Promise<number[]>;
|
|
87
|
-
create: (usersId: number, data: unknown) => Promise<
|
|
88
|
-
update: (usersId: number, invMastUid: number, data: unknown) => Promise<
|
|
89
|
-
delete: (usersId: number, invMastUid: number) => Promise<
|
|
87
|
+
create: (usersId: number, data: unknown) => Promise<unknown>;
|
|
88
|
+
update: (usersId: number, invMastUid: number, data: unknown) => Promise<unknown>;
|
|
89
|
+
delete: (usersId: number, invMastUid: number) => Promise<unknown>;
|
|
90
90
|
};
|
|
91
91
|
export type ItemFavoritesResource = ReturnType<typeof createItemFavoritesResource>;
|
|
92
92
|
export type ItemFavoritesDataResource = ReturnType<typeof createItemFavoritesDataResource>;
|
|
@@ -53,7 +53,7 @@ export declare const ItemFavoritesListResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
53
53
|
}>;
|
|
54
54
|
export declare const ItemFavoritesItemResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
55
55
|
count: z.ZodNumber;
|
|
56
|
-
data: z.
|
|
56
|
+
data: z.ZodUnknown;
|
|
57
57
|
message: z.ZodString;
|
|
58
58
|
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
59
59
|
params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
@@ -62,40 +62,40 @@ export declare const ItemFavoritesItemResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
62
62
|
totalResults: z.ZodNumber;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
params: Record<string, unknown> | unknown[];
|
|
65
|
-
data: number | null;
|
|
66
65
|
options: Record<string, unknown> | unknown[];
|
|
67
66
|
status: number;
|
|
68
67
|
message: string;
|
|
69
68
|
count: number;
|
|
70
69
|
total: number;
|
|
71
70
|
totalResults: number;
|
|
71
|
+
data?: unknown;
|
|
72
72
|
}, {
|
|
73
73
|
params: Record<string, unknown> | unknown[];
|
|
74
|
-
data: number | null;
|
|
75
74
|
options: Record<string, unknown> | unknown[];
|
|
76
75
|
status: number;
|
|
77
76
|
message: string;
|
|
78
77
|
count: number;
|
|
79
78
|
total: number;
|
|
80
79
|
totalResults: number;
|
|
80
|
+
data?: unknown;
|
|
81
81
|
}>, {
|
|
82
82
|
params: Record<string, unknown> | unknown[];
|
|
83
|
-
data: number | null;
|
|
84
83
|
options: Record<string, unknown> | unknown[];
|
|
85
84
|
status: number;
|
|
86
85
|
message: string;
|
|
87
86
|
count: number;
|
|
88
87
|
total: number;
|
|
89
88
|
totalResults: number;
|
|
89
|
+
data?: unknown;
|
|
90
90
|
}, {
|
|
91
91
|
params: Record<string, unknown> | unknown[];
|
|
92
|
-
data: number | null;
|
|
93
92
|
options: Record<string, unknown> | unknown[];
|
|
94
93
|
status: number;
|
|
95
94
|
message: string;
|
|
96
95
|
count: number;
|
|
97
96
|
total: number;
|
|
98
97
|
totalResults: number;
|
|
98
|
+
data?: unknown;
|
|
99
99
|
}>;
|
|
100
100
|
export type ItemFavoritesListResponse = z.infer<typeof ItemFavoritesListResponseSchema>;
|
|
101
101
|
export type ItemFavoritesItemResponse = z.infer<typeof ItemFavoritesItemResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemFavorites.d.ts","sourceRoot":"","sources":["../../../../../src/services/items/schemas/itemFavorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkD,CAAC;AAC/F,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"itemFavorites.d.ts","sourceRoot":"","sources":["../../../../../src/services/items/schemas/itemFavorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkD,CAAC;AAC/F,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAC;AAG/E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -12,5 +12,5 @@ const favorites_1 = require("./favorites");
|
|
|
12
12
|
* POST/PUT/DELETE return standard BaseResponse
|
|
13
13
|
*/
|
|
14
14
|
exports.ItemFavoritesListResponseSchema = (0, schemas_1.BaseResponseSchema)(favorites_1.ItemFavoritesListDataSchema);
|
|
15
|
-
exports.ItemFavoritesItemResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.
|
|
15
|
+
exports.ItemFavoritesItemResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.unknown());
|
|
16
16
|
//# sourceMappingURL=itemFavorites.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemFavorites.js","sourceRoot":"","sources":["../../../../../src/services/items/schemas/itemFavorites.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mDAA2D;AAE3D,2CAA2C;AAC3C,2CAA0D;AAE1D;;;;;GAKG;AACU,QAAA,+BAA+B,GAAG,IAAA,4BAAkB,EAAC,uCAA2B,CAAC,CAAC;AAClF,QAAA,+BAA+B,GAAG,IAAA,4BAAkB,EAAC,OAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"itemFavorites.js","sourceRoot":"","sources":["../../../../../src/services/items/schemas/itemFavorites.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mDAA2D;AAE3D,2CAA2C;AAC3C,2CAA0D;AAE1D;;;;;GAKG;AACU,QAAA,+BAA+B,GAAG,IAAA,4BAAkB,EAAC,uCAA2B,CAAC,CAAC;AAClF,QAAA,+BAA+B,GAAG,IAAA,4BAAkB,EAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "0.8.
|
|
1
|
+
export declare const VERSION = "0.8.12";
|
|
2
2
|
export { AugurAPI } from './client';
|
|
3
3
|
export { authenticateUserForSite, createCrossSiteAuthenticator, type CrossSiteAuthParams, type CrossSiteAuthResult, } from './utils/cross-site-auth';
|
|
4
4
|
export { AugurAPIConfig, RequestConfig, type AugurContext, ContextCreationError, } from './core/config';
|
package/dist/esm/index.js
CHANGED
|
@@ -331,7 +331,7 @@ export declare function createCustomerResource(executeRequest: ExecuteRequest):
|
|
|
331
331
|
list: (customerId: number, params?: CustomerCustomerIdQuotesParams) => Promise<{
|
|
332
332
|
params: Record<string, unknown> | unknown[];
|
|
333
333
|
data: import("zod").objectInputType<{
|
|
334
|
-
|
|
334
|
+
orderNo: import("zod").ZodNumber;
|
|
335
335
|
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
336
336
|
options: Record<string, unknown> | unknown[];
|
|
337
337
|
status: number;
|
|
@@ -350,7 +350,7 @@ export declare function createCustomerResource(executeRequest: ExecuteRequest):
|
|
|
350
350
|
get: (customerId: number, quoteNo: number) => Promise<{
|
|
351
351
|
params: Record<string, unknown> | unknown[];
|
|
352
352
|
data: {
|
|
353
|
-
|
|
353
|
+
orderNo: number;
|
|
354
354
|
} & {
|
|
355
355
|
[k: string]: unknown;
|
|
356
356
|
};
|
|
@@ -459,10 +459,10 @@ export declare function createCustomerDataResource(customer: ReturnType<typeof c
|
|
|
459
459
|
};
|
|
460
460
|
quotes: {
|
|
461
461
|
list: (customerId: number, params?: CustomerCustomerIdQuotesParams) => Promise<import("zod").objectInputType<{
|
|
462
|
-
|
|
462
|
+
orderNo: import("zod").ZodNumber;
|
|
463
463
|
}, import("zod").ZodTypeAny, "passthrough">[]>;
|
|
464
464
|
get: (customerId: number, quoteNo: number) => Promise<{
|
|
465
|
-
|
|
465
|
+
orderNo: number;
|
|
466
466
|
} & {
|
|
467
467
|
[k: string]: unknown;
|
|
468
468
|
}>;
|
|
@@ -18,20 +18,20 @@ export declare const CustomerCustomerIdQuotesParamsSchema: z.ZodObject<{
|
|
|
18
18
|
}>;
|
|
19
19
|
/** Quote - key field only, passthrough for API flexibility */
|
|
20
20
|
export declare const QuoteSchema: z.ZodObject<{
|
|
21
|
-
|
|
21
|
+
orderNo: z.ZodNumber;
|
|
22
22
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
23
|
-
|
|
23
|
+
orderNo: z.ZodNumber;
|
|
24
24
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
25
|
-
|
|
25
|
+
orderNo: z.ZodNumber;
|
|
26
26
|
}, z.ZodTypeAny, "passthrough">>;
|
|
27
27
|
export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
28
28
|
count: z.ZodNumber;
|
|
29
29
|
data: z.ZodArray<z.ZodObject<{
|
|
30
|
-
|
|
30
|
+
orderNo: z.ZodNumber;
|
|
31
31
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
32
|
-
|
|
32
|
+
orderNo: z.ZodNumber;
|
|
33
33
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
34
|
-
|
|
34
|
+
orderNo: z.ZodNumber;
|
|
35
35
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
36
36
|
message: z.ZodString;
|
|
37
37
|
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
@@ -42,7 +42,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
params: Record<string, unknown> | unknown[];
|
|
44
44
|
data: z.objectOutputType<{
|
|
45
|
-
|
|
45
|
+
orderNo: z.ZodNumber;
|
|
46
46
|
}, z.ZodTypeAny, "passthrough">[];
|
|
47
47
|
options: Record<string, unknown> | unknown[];
|
|
48
48
|
status: number;
|
|
@@ -53,7 +53,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
53
53
|
}, {
|
|
54
54
|
params: Record<string, unknown> | unknown[];
|
|
55
55
|
data: z.objectInputType<{
|
|
56
|
-
|
|
56
|
+
orderNo: z.ZodNumber;
|
|
57
57
|
}, z.ZodTypeAny, "passthrough">[];
|
|
58
58
|
options: Record<string, unknown> | unknown[];
|
|
59
59
|
status: number;
|
|
@@ -64,7 +64,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
64
64
|
}>, {
|
|
65
65
|
params: Record<string, unknown> | unknown[];
|
|
66
66
|
data: z.objectOutputType<{
|
|
67
|
-
|
|
67
|
+
orderNo: z.ZodNumber;
|
|
68
68
|
}, z.ZodTypeAny, "passthrough">[];
|
|
69
69
|
options: Record<string, unknown> | unknown[];
|
|
70
70
|
status: number;
|
|
@@ -75,7 +75,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
75
75
|
}, {
|
|
76
76
|
params: Record<string, unknown> | unknown[];
|
|
77
77
|
data: z.objectInputType<{
|
|
78
|
-
|
|
78
|
+
orderNo: z.ZodNumber;
|
|
79
79
|
}, z.ZodTypeAny, "passthrough">[];
|
|
80
80
|
options: Record<string, unknown> | unknown[];
|
|
81
81
|
status: number;
|
|
@@ -6,6 +6,6 @@ export const CustomerCustomerIdQuotesParamsSchema = BaseGetParamsSchema.extend({
|
|
|
6
6
|
orderBy: z.string().optional(),
|
|
7
7
|
});
|
|
8
8
|
/** Quote - key field only, passthrough for API flexibility */
|
|
9
|
-
export const QuoteSchema = z.object({
|
|
9
|
+
export const QuoteSchema = z.object({ orderNo: z.coerce.number() }).passthrough();
|
|
10
10
|
export const CustomerCustomerIdQuotesResponseSchema = BaseResponseSchema(z.array(QuoteSchema));
|
|
11
11
|
//# sourceMappingURL=customerCustomerIdQuotes.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/** Quote document - key field only, passthrough for API flexibility */
|
|
3
3
|
export declare const QuoteDocumentSchema: z.ZodObject<{
|
|
4
|
-
|
|
4
|
+
orderNo: z.ZodNumber;
|
|
5
5
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
6
|
-
|
|
6
|
+
orderNo: z.ZodNumber;
|
|
7
7
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
8
|
-
|
|
8
|
+
orderNo: z.ZodNumber;
|
|
9
9
|
}, z.ZodTypeAny, "passthrough">>;
|
|
10
10
|
export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
11
11
|
count: z.ZodNumber;
|
|
12
12
|
data: z.ZodObject<{
|
|
13
|
-
|
|
13
|
+
orderNo: z.ZodNumber;
|
|
14
14
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
15
|
-
|
|
15
|
+
orderNo: z.ZodNumber;
|
|
16
16
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
17
|
-
|
|
17
|
+
orderNo: z.ZodNumber;
|
|
18
18
|
}, z.ZodTypeAny, "passthrough">>;
|
|
19
19
|
message: z.ZodString;
|
|
20
20
|
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
@@ -25,7 +25,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
params: Record<string, unknown> | unknown[];
|
|
27
27
|
data: {
|
|
28
|
-
|
|
28
|
+
orderNo: number;
|
|
29
29
|
} & {
|
|
30
30
|
[k: string]: unknown;
|
|
31
31
|
};
|
|
@@ -38,7 +38,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
38
38
|
}, {
|
|
39
39
|
params: Record<string, unknown> | unknown[];
|
|
40
40
|
data: {
|
|
41
|
-
|
|
41
|
+
orderNo: number;
|
|
42
42
|
} & {
|
|
43
43
|
[k: string]: unknown;
|
|
44
44
|
};
|
|
@@ -51,7 +51,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
51
51
|
}>, {
|
|
52
52
|
params: Record<string, unknown> | unknown[];
|
|
53
53
|
data: {
|
|
54
|
-
|
|
54
|
+
orderNo: number;
|
|
55
55
|
} & {
|
|
56
56
|
[k: string]: unknown;
|
|
57
57
|
};
|
|
@@ -64,7 +64,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
64
64
|
}, {
|
|
65
65
|
params: Record<string, unknown> | unknown[];
|
|
66
66
|
data: {
|
|
67
|
-
|
|
67
|
+
orderNo: number;
|
|
68
68
|
} & {
|
|
69
69
|
[k: string]: unknown;
|
|
70
70
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { BaseResponseSchema } from '../../../core/schemas';
|
|
3
3
|
/** Quote document - key field only, passthrough for API flexibility */
|
|
4
|
-
export const QuoteDocumentSchema = z.object({
|
|
4
|
+
export const QuoteDocumentSchema = z.object({ orderNo: z.coerce.number() }).passthrough();
|
|
5
5
|
export const CustomerCustomerIdQuotesQuoteNoResponseSchema = BaseResponseSchema(QuoteDocumentSchema);
|
|
6
6
|
//# sourceMappingURL=customerCustomerIdQuotesQuoteNo.js.map
|
|
@@ -34,13 +34,13 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
34
34
|
*/
|
|
35
35
|
create: (usersId: number, data: unknown) => Promise<{
|
|
36
36
|
params: Record<string, unknown> | unknown[];
|
|
37
|
-
data: number | null;
|
|
38
37
|
options: Record<string, unknown> | unknown[];
|
|
39
38
|
status: number;
|
|
40
39
|
message: string;
|
|
41
40
|
count: number;
|
|
42
41
|
total: number;
|
|
43
42
|
totalResults: number;
|
|
43
|
+
data?: unknown;
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
46
46
|
* Update user favorite
|
|
@@ -52,13 +52,13 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
52
52
|
*/
|
|
53
53
|
update: (usersId: number, invMastUid: number, data: unknown) => Promise<{
|
|
54
54
|
params: Record<string, unknown> | unknown[];
|
|
55
|
-
data: number | null;
|
|
56
55
|
options: Record<string, unknown> | unknown[];
|
|
57
56
|
status: number;
|
|
58
57
|
message: string;
|
|
59
58
|
count: number;
|
|
60
59
|
total: number;
|
|
61
60
|
totalResults: number;
|
|
61
|
+
data?: unknown;
|
|
62
62
|
}>;
|
|
63
63
|
/**
|
|
64
64
|
* Delete user favorite
|
|
@@ -70,13 +70,13 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
70
70
|
*/
|
|
71
71
|
delete: (usersId: number, invMastUid: number) => Promise<{
|
|
72
72
|
params: Record<string, unknown> | unknown[];
|
|
73
|
-
data: number | null;
|
|
74
73
|
options: Record<string, unknown> | unknown[];
|
|
75
74
|
status: number;
|
|
76
75
|
message: string;
|
|
77
76
|
count: number;
|
|
78
77
|
total: number;
|
|
79
78
|
totalResults: number;
|
|
79
|
+
data?: unknown;
|
|
80
80
|
}>;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
@@ -84,9 +84,9 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
84
84
|
*/
|
|
85
85
|
export declare function createItemFavoritesDataResource(itemFavorites: ReturnType<typeof createItemFavoritesResource>): {
|
|
86
86
|
list: (usersId: number, params?: Record<string, unknown>) => Promise<number[]>;
|
|
87
|
-
create: (usersId: number, data: unknown) => Promise<
|
|
88
|
-
update: (usersId: number, invMastUid: number, data: unknown) => Promise<
|
|
89
|
-
delete: (usersId: number, invMastUid: number) => Promise<
|
|
87
|
+
create: (usersId: number, data: unknown) => Promise<unknown>;
|
|
88
|
+
update: (usersId: number, invMastUid: number, data: unknown) => Promise<unknown>;
|
|
89
|
+
delete: (usersId: number, invMastUid: number) => Promise<unknown>;
|
|
90
90
|
};
|
|
91
91
|
export type ItemFavoritesResource = ReturnType<typeof createItemFavoritesResource>;
|
|
92
92
|
export type ItemFavoritesDataResource = ReturnType<typeof createItemFavoritesDataResource>;
|
|
@@ -53,7 +53,7 @@ export declare const ItemFavoritesListResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
53
53
|
}>;
|
|
54
54
|
export declare const ItemFavoritesItemResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
55
55
|
count: z.ZodNumber;
|
|
56
|
-
data: z.
|
|
56
|
+
data: z.ZodUnknown;
|
|
57
57
|
message: z.ZodString;
|
|
58
58
|
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
59
59
|
params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
@@ -62,40 +62,40 @@ export declare const ItemFavoritesItemResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
62
62
|
totalResults: z.ZodNumber;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
params: Record<string, unknown> | unknown[];
|
|
65
|
-
data: number | null;
|
|
66
65
|
options: Record<string, unknown> | unknown[];
|
|
67
66
|
status: number;
|
|
68
67
|
message: string;
|
|
69
68
|
count: number;
|
|
70
69
|
total: number;
|
|
71
70
|
totalResults: number;
|
|
71
|
+
data?: unknown;
|
|
72
72
|
}, {
|
|
73
73
|
params: Record<string, unknown> | unknown[];
|
|
74
|
-
data: number | null;
|
|
75
74
|
options: Record<string, unknown> | unknown[];
|
|
76
75
|
status: number;
|
|
77
76
|
message: string;
|
|
78
77
|
count: number;
|
|
79
78
|
total: number;
|
|
80
79
|
totalResults: number;
|
|
80
|
+
data?: unknown;
|
|
81
81
|
}>, {
|
|
82
82
|
params: Record<string, unknown> | unknown[];
|
|
83
|
-
data: number | null;
|
|
84
83
|
options: Record<string, unknown> | unknown[];
|
|
85
84
|
status: number;
|
|
86
85
|
message: string;
|
|
87
86
|
count: number;
|
|
88
87
|
total: number;
|
|
89
88
|
totalResults: number;
|
|
89
|
+
data?: unknown;
|
|
90
90
|
}, {
|
|
91
91
|
params: Record<string, unknown> | unknown[];
|
|
92
|
-
data: number | null;
|
|
93
92
|
options: Record<string, unknown> | unknown[];
|
|
94
93
|
status: number;
|
|
95
94
|
message: string;
|
|
96
95
|
count: number;
|
|
97
96
|
total: number;
|
|
98
97
|
totalResults: number;
|
|
98
|
+
data?: unknown;
|
|
99
99
|
}>;
|
|
100
100
|
export type ItemFavoritesListResponse = z.infer<typeof ItemFavoritesListResponseSchema>;
|
|
101
101
|
export type ItemFavoritesItemResponse = z.infer<typeof ItemFavoritesItemResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemFavorites.d.ts","sourceRoot":"","sources":["../../../../../src/services/items/schemas/itemFavorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkD,CAAC;AAC/F,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"itemFavorites.d.ts","sourceRoot":"","sources":["../../../../../src/services/items/schemas/itemFavorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkD,CAAC;AAC/F,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAC;AAG/E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -9,5 +9,5 @@ import { ItemFavoritesListDataSchema } from './favorites';
|
|
|
9
9
|
* POST/PUT/DELETE return standard BaseResponse
|
|
10
10
|
*/
|
|
11
11
|
export const ItemFavoritesListResponseSchema = BaseResponseSchema(ItemFavoritesListDataSchema);
|
|
12
|
-
export const ItemFavoritesItemResponseSchema = BaseResponseSchema(z.
|
|
12
|
+
export const ItemFavoritesItemResponseSchema = BaseResponseSchema(z.unknown());
|
|
13
13
|
//# sourceMappingURL=itemFavorites.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemFavorites.js","sourceRoot":"","sources":["../../../../../src/services/items/schemas/itemFavorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,2CAA2C;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,kBAAkB,CAAC,2BAA2B,CAAC,CAAC;AAC/F,MAAM,CAAC,MAAM,+BAA+B,GAAG,kBAAkB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"itemFavorites.js","sourceRoot":"","sources":["../../../../../src/services/items/schemas/itemFavorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,2CAA2C;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,kBAAkB,CAAC,2BAA2B,CAAC,CAAC;AAC/F,MAAM,CAAC,MAAM,+BAA+B,GAAG,kBAAkB,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "0.8.
|
|
1
|
+
export declare const VERSION = "0.8.12";
|
|
2
2
|
export { AugurAPI } from './client';
|
|
3
3
|
export { authenticateUserForSite, createCrossSiteAuthenticator, type CrossSiteAuthParams, type CrossSiteAuthResult, } from './utils/cross-site-auth';
|
|
4
4
|
export { AugurAPIConfig, RequestConfig, type AugurContext, ContextCreationError, } from './core/config';
|
|
@@ -331,7 +331,7 @@ export declare function createCustomerResource(executeRequest: ExecuteRequest):
|
|
|
331
331
|
list: (customerId: number, params?: CustomerCustomerIdQuotesParams) => Promise<{
|
|
332
332
|
params: Record<string, unknown> | unknown[];
|
|
333
333
|
data: import("zod").objectInputType<{
|
|
334
|
-
|
|
334
|
+
orderNo: import("zod").ZodNumber;
|
|
335
335
|
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
336
336
|
options: Record<string, unknown> | unknown[];
|
|
337
337
|
status: number;
|
|
@@ -350,7 +350,7 @@ export declare function createCustomerResource(executeRequest: ExecuteRequest):
|
|
|
350
350
|
get: (customerId: number, quoteNo: number) => Promise<{
|
|
351
351
|
params: Record<string, unknown> | unknown[];
|
|
352
352
|
data: {
|
|
353
|
-
|
|
353
|
+
orderNo: number;
|
|
354
354
|
} & {
|
|
355
355
|
[k: string]: unknown;
|
|
356
356
|
};
|
|
@@ -459,10 +459,10 @@ export declare function createCustomerDataResource(customer: ReturnType<typeof c
|
|
|
459
459
|
};
|
|
460
460
|
quotes: {
|
|
461
461
|
list: (customerId: number, params?: CustomerCustomerIdQuotesParams) => Promise<import("zod").objectInputType<{
|
|
462
|
-
|
|
462
|
+
orderNo: import("zod").ZodNumber;
|
|
463
463
|
}, import("zod").ZodTypeAny, "passthrough">[]>;
|
|
464
464
|
get: (customerId: number, quoteNo: number) => Promise<{
|
|
465
|
-
|
|
465
|
+
orderNo: number;
|
|
466
466
|
} & {
|
|
467
467
|
[k: string]: unknown;
|
|
468
468
|
}>;
|
|
@@ -18,20 +18,20 @@ export declare const CustomerCustomerIdQuotesParamsSchema: z.ZodObject<{
|
|
|
18
18
|
}>;
|
|
19
19
|
/** Quote - key field only, passthrough for API flexibility */
|
|
20
20
|
export declare const QuoteSchema: z.ZodObject<{
|
|
21
|
-
|
|
21
|
+
orderNo: z.ZodNumber;
|
|
22
22
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
23
|
-
|
|
23
|
+
orderNo: z.ZodNumber;
|
|
24
24
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
25
|
-
|
|
25
|
+
orderNo: z.ZodNumber;
|
|
26
26
|
}, z.ZodTypeAny, "passthrough">>;
|
|
27
27
|
export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
28
28
|
count: z.ZodNumber;
|
|
29
29
|
data: z.ZodArray<z.ZodObject<{
|
|
30
|
-
|
|
30
|
+
orderNo: z.ZodNumber;
|
|
31
31
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
32
|
-
|
|
32
|
+
orderNo: z.ZodNumber;
|
|
33
33
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
34
|
-
|
|
34
|
+
orderNo: z.ZodNumber;
|
|
35
35
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
36
36
|
message: z.ZodString;
|
|
37
37
|
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
@@ -42,7 +42,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
params: Record<string, unknown> | unknown[];
|
|
44
44
|
data: z.objectOutputType<{
|
|
45
|
-
|
|
45
|
+
orderNo: z.ZodNumber;
|
|
46
46
|
}, z.ZodTypeAny, "passthrough">[];
|
|
47
47
|
options: Record<string, unknown> | unknown[];
|
|
48
48
|
status: number;
|
|
@@ -53,7 +53,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
53
53
|
}, {
|
|
54
54
|
params: Record<string, unknown> | unknown[];
|
|
55
55
|
data: z.objectInputType<{
|
|
56
|
-
|
|
56
|
+
orderNo: z.ZodNumber;
|
|
57
57
|
}, z.ZodTypeAny, "passthrough">[];
|
|
58
58
|
options: Record<string, unknown> | unknown[];
|
|
59
59
|
status: number;
|
|
@@ -64,7 +64,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
64
64
|
}>, {
|
|
65
65
|
params: Record<string, unknown> | unknown[];
|
|
66
66
|
data: z.objectOutputType<{
|
|
67
|
-
|
|
67
|
+
orderNo: z.ZodNumber;
|
|
68
68
|
}, z.ZodTypeAny, "passthrough">[];
|
|
69
69
|
options: Record<string, unknown> | unknown[];
|
|
70
70
|
status: number;
|
|
@@ -75,7 +75,7 @@ export declare const CustomerCustomerIdQuotesResponseSchema: z.ZodEffects<z.ZodO
|
|
|
75
75
|
}, {
|
|
76
76
|
params: Record<string, unknown> | unknown[];
|
|
77
77
|
data: z.objectInputType<{
|
|
78
|
-
|
|
78
|
+
orderNo: z.ZodNumber;
|
|
79
79
|
}, z.ZodTypeAny, "passthrough">[];
|
|
80
80
|
options: Record<string, unknown> | unknown[];
|
|
81
81
|
status: number;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/** Quote document - key field only, passthrough for API flexibility */
|
|
3
3
|
export declare const QuoteDocumentSchema: z.ZodObject<{
|
|
4
|
-
|
|
4
|
+
orderNo: z.ZodNumber;
|
|
5
5
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
6
|
-
|
|
6
|
+
orderNo: z.ZodNumber;
|
|
7
7
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
8
|
-
|
|
8
|
+
orderNo: z.ZodNumber;
|
|
9
9
|
}, z.ZodTypeAny, "passthrough">>;
|
|
10
10
|
export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
11
11
|
count: z.ZodNumber;
|
|
12
12
|
data: z.ZodObject<{
|
|
13
|
-
|
|
13
|
+
orderNo: z.ZodNumber;
|
|
14
14
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
15
|
-
|
|
15
|
+
orderNo: z.ZodNumber;
|
|
16
16
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
17
|
-
|
|
17
|
+
orderNo: z.ZodNumber;
|
|
18
18
|
}, z.ZodTypeAny, "passthrough">>;
|
|
19
19
|
message: z.ZodString;
|
|
20
20
|
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
@@ -25,7 +25,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
params: Record<string, unknown> | unknown[];
|
|
27
27
|
data: {
|
|
28
|
-
|
|
28
|
+
orderNo: number;
|
|
29
29
|
} & {
|
|
30
30
|
[k: string]: unknown;
|
|
31
31
|
};
|
|
@@ -38,7 +38,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
38
38
|
}, {
|
|
39
39
|
params: Record<string, unknown> | unknown[];
|
|
40
40
|
data: {
|
|
41
|
-
|
|
41
|
+
orderNo: number;
|
|
42
42
|
} & {
|
|
43
43
|
[k: string]: unknown;
|
|
44
44
|
};
|
|
@@ -51,7 +51,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
51
51
|
}>, {
|
|
52
52
|
params: Record<string, unknown> | unknown[];
|
|
53
53
|
data: {
|
|
54
|
-
|
|
54
|
+
orderNo: number;
|
|
55
55
|
} & {
|
|
56
56
|
[k: string]: unknown;
|
|
57
57
|
};
|
|
@@ -64,7 +64,7 @@ export declare const CustomerCustomerIdQuotesQuoteNoResponseSchema: z.ZodEffects
|
|
|
64
64
|
}, {
|
|
65
65
|
params: Record<string, unknown> | unknown[];
|
|
66
66
|
data: {
|
|
67
|
-
|
|
67
|
+
orderNo: number;
|
|
68
68
|
} & {
|
|
69
69
|
[k: string]: unknown;
|
|
70
70
|
};
|
|
@@ -34,13 +34,13 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
34
34
|
*/
|
|
35
35
|
create: (usersId: number, data: unknown) => Promise<{
|
|
36
36
|
params: Record<string, unknown> | unknown[];
|
|
37
|
-
data: number | null;
|
|
38
37
|
options: Record<string, unknown> | unknown[];
|
|
39
38
|
status: number;
|
|
40
39
|
message: string;
|
|
41
40
|
count: number;
|
|
42
41
|
total: number;
|
|
43
42
|
totalResults: number;
|
|
43
|
+
data?: unknown;
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
46
46
|
* Update user favorite
|
|
@@ -52,13 +52,13 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
52
52
|
*/
|
|
53
53
|
update: (usersId: number, invMastUid: number, data: unknown) => Promise<{
|
|
54
54
|
params: Record<string, unknown> | unknown[];
|
|
55
|
-
data: number | null;
|
|
56
55
|
options: Record<string, unknown> | unknown[];
|
|
57
56
|
status: number;
|
|
58
57
|
message: string;
|
|
59
58
|
count: number;
|
|
60
59
|
total: number;
|
|
61
60
|
totalResults: number;
|
|
61
|
+
data?: unknown;
|
|
62
62
|
}>;
|
|
63
63
|
/**
|
|
64
64
|
* Delete user favorite
|
|
@@ -70,13 +70,13 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
70
70
|
*/
|
|
71
71
|
delete: (usersId: number, invMastUid: number) => Promise<{
|
|
72
72
|
params: Record<string, unknown> | unknown[];
|
|
73
|
-
data: number | null;
|
|
74
73
|
options: Record<string, unknown> | unknown[];
|
|
75
74
|
status: number;
|
|
76
75
|
message: string;
|
|
77
76
|
count: number;
|
|
78
77
|
total: number;
|
|
79
78
|
totalResults: number;
|
|
79
|
+
data?: unknown;
|
|
80
80
|
}>;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
@@ -84,9 +84,9 @@ export declare function createItemFavoritesResource(executeRequest: ExecuteReque
|
|
|
84
84
|
*/
|
|
85
85
|
export declare function createItemFavoritesDataResource(itemFavorites: ReturnType<typeof createItemFavoritesResource>): {
|
|
86
86
|
list: (usersId: number, params?: Record<string, unknown>) => Promise<number[]>;
|
|
87
|
-
create: (usersId: number, data: unknown) => Promise<
|
|
88
|
-
update: (usersId: number, invMastUid: number, data: unknown) => Promise<
|
|
89
|
-
delete: (usersId: number, invMastUid: number) => Promise<
|
|
87
|
+
create: (usersId: number, data: unknown) => Promise<unknown>;
|
|
88
|
+
update: (usersId: number, invMastUid: number, data: unknown) => Promise<unknown>;
|
|
89
|
+
delete: (usersId: number, invMastUid: number) => Promise<unknown>;
|
|
90
90
|
};
|
|
91
91
|
export type ItemFavoritesResource = ReturnType<typeof createItemFavoritesResource>;
|
|
92
92
|
export type ItemFavoritesDataResource = ReturnType<typeof createItemFavoritesDataResource>;
|
|
@@ -53,7 +53,7 @@ export declare const ItemFavoritesListResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
53
53
|
}>;
|
|
54
54
|
export declare const ItemFavoritesItemResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
55
55
|
count: z.ZodNumber;
|
|
56
|
-
data: z.
|
|
56
|
+
data: z.ZodUnknown;
|
|
57
57
|
message: z.ZodString;
|
|
58
58
|
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
59
59
|
params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
@@ -62,40 +62,40 @@ export declare const ItemFavoritesItemResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
62
62
|
totalResults: z.ZodNumber;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
params: Record<string, unknown> | unknown[];
|
|
65
|
-
data: number | null;
|
|
66
65
|
options: Record<string, unknown> | unknown[];
|
|
67
66
|
status: number;
|
|
68
67
|
message: string;
|
|
69
68
|
count: number;
|
|
70
69
|
total: number;
|
|
71
70
|
totalResults: number;
|
|
71
|
+
data?: unknown;
|
|
72
72
|
}, {
|
|
73
73
|
params: Record<string, unknown> | unknown[];
|
|
74
|
-
data: number | null;
|
|
75
74
|
options: Record<string, unknown> | unknown[];
|
|
76
75
|
status: number;
|
|
77
76
|
message: string;
|
|
78
77
|
count: number;
|
|
79
78
|
total: number;
|
|
80
79
|
totalResults: number;
|
|
80
|
+
data?: unknown;
|
|
81
81
|
}>, {
|
|
82
82
|
params: Record<string, unknown> | unknown[];
|
|
83
|
-
data: number | null;
|
|
84
83
|
options: Record<string, unknown> | unknown[];
|
|
85
84
|
status: number;
|
|
86
85
|
message: string;
|
|
87
86
|
count: number;
|
|
88
87
|
total: number;
|
|
89
88
|
totalResults: number;
|
|
89
|
+
data?: unknown;
|
|
90
90
|
}, {
|
|
91
91
|
params: Record<string, unknown> | unknown[];
|
|
92
|
-
data: number | null;
|
|
93
92
|
options: Record<string, unknown> | unknown[];
|
|
94
93
|
status: number;
|
|
95
94
|
message: string;
|
|
96
95
|
count: number;
|
|
97
96
|
total: number;
|
|
98
97
|
totalResults: number;
|
|
98
|
+
data?: unknown;
|
|
99
99
|
}>;
|
|
100
100
|
export type ItemFavoritesListResponse = z.infer<typeof ItemFavoritesListResponseSchema>;
|
|
101
101
|
export type ItemFavoritesItemResponse = z.infer<typeof ItemFavoritesItemResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemFavorites.d.ts","sourceRoot":"","sources":["../../../../../src/services/items/schemas/itemFavorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkD,CAAC;AAC/F,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"itemFavorites.d.ts","sourceRoot":"","sources":["../../../../../src/services/items/schemas/itemFavorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkD,CAAC;AAC/F,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAC;AAG/E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|