@edgebound/bigcommerce 0.5.54 → 0.5.56
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/bigcommerce-entities/quotes/quotes.service.d.ts +6 -0
- package/dist/bigcommerce-entities/quotes/quotes.service.d.ts.map +1 -1
- package/dist/bigcommerce-entities/quotes/quotes.service.js +11 -0
- package/dist/bigcommerce-entities/quotes/quotes.service.js.map +1 -1
- package/dist/bigcommerce-entities/quotes/schemas/find-quotes.schema.d.ts +1 -0
- package/dist/bigcommerce-entities/quotes/schemas/find-quotes.schema.d.ts.map +1 -1
- package/dist/bigcommerce-entities/quotes/schemas/find-quotes.schema.js +1 -0
- package/dist/bigcommerce-entities/quotes/schemas/find-quotes.schema.js.map +1 -1
- package/dist/bigcommerce-entities/quotes/schemas/update-quote.schema.d.ts +15 -0
- package/dist/bigcommerce-entities/quotes/schemas/update-quote.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/quotes/schemas/update-quote.schema.js +51 -0
- package/dist/bigcommerce-entities/quotes/schemas/update-quote.schema.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
import { BigCommerceFetcherService } from '../../core';
|
|
3
3
|
import { FindQuotesCriteriaSchema } from './schemas';
|
|
4
|
+
import { UpdateQuoteInputSchema } from './schemas/update-quote.schema';
|
|
4
5
|
export declare class BigCommerceQuotesService {
|
|
5
6
|
private readonly fetcher;
|
|
6
7
|
constructor(fetcher: BigCommerceFetcherService);
|
|
@@ -117,5 +118,10 @@ export declare class BigCommerceQuotesService {
|
|
|
117
118
|
discountValue?: number | null | undefined;
|
|
118
119
|
};
|
|
119
120
|
}, import("../../core").BigCommerceError>;
|
|
121
|
+
updateQuote(input: z.input<typeof UpdateQuoteInputSchema>): import("neverthrow").ResultAsync<{
|
|
122
|
+
data: {
|
|
123
|
+
quoteId: number;
|
|
124
|
+
};
|
|
125
|
+
}, import("../../core").BigCommerceError>;
|
|
120
126
|
}
|
|
121
127
|
//# sourceMappingURL=quotes.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.service.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/quotes/quotes.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EACL,wBAAwB,EAGzB,MAAM,WAAW,CAAC;AACnB,qBACa,wBAAwB;IACvB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,yBAAyB;IAE/D,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgB9D,gBAAgB,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"quotes.service.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/quotes/quotes.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EACL,wBAAwB,EAGzB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,sBAAsB,EAA6B,MAAM,+BAA+B,CAAC;AAClG,qBACa,wBAAwB;IACvB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,yBAAyB;IAE/D,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgB9D,gBAAgB,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAahC,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC;;;;;CAY1D"}
|
|
@@ -15,6 +15,7 @@ const node_querystring_1 = require("node:querystring");
|
|
|
15
15
|
const core_1 = require("../../core");
|
|
16
16
|
const validate_1 = require("../../utils/validate");
|
|
17
17
|
const schemas_1 = require("./schemas");
|
|
18
|
+
const update_quote_schema_1 = require("./schemas/update-quote.schema");
|
|
18
19
|
let BigCommerceQuotesService = class BigCommerceQuotesService {
|
|
19
20
|
fetcher;
|
|
20
21
|
constructor(fetcher) {
|
|
@@ -39,6 +40,16 @@ let BigCommerceQuotesService = class BigCommerceQuotesService {
|
|
|
39
40
|
version: 'v3',
|
|
40
41
|
}, { shouldRetry: true });
|
|
41
42
|
}
|
|
43
|
+
updateQuote(input) {
|
|
44
|
+
return (0, validate_1.validateInputData)(update_quote_schema_1.UpdateQuoteInputSchema, input).asyncAndThen(({ data, quoteId }) => this.fetcher.fetch({
|
|
45
|
+
isB2B: true,
|
|
46
|
+
path: `rfq/${quoteId}`,
|
|
47
|
+
method: 'PUT',
|
|
48
|
+
body: data,
|
|
49
|
+
resultSchema: update_quote_schema_1.UpdateQuoteResponseSchema,
|
|
50
|
+
version: 'v3',
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
42
53
|
};
|
|
43
54
|
exports.BigCommerceQuotesService = BigCommerceQuotesService;
|
|
44
55
|
exports.BigCommerceQuotesService = BigCommerceQuotesService = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.service.js","sourceRoot":"","sources":["../../../src/bigcommerce-entities/quotes/quotes.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uDAA6C;AAE7C,qCAAuD;AACvD,mDAAyD;AACzD,uCAImB;
|
|
1
|
+
{"version":3,"file":"quotes.service.js","sourceRoot":"","sources":["../../../src/bigcommerce-entities/quotes/quotes.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uDAA6C;AAE7C,qCAAuD;AACvD,mDAAyD;AACzD,uCAImB;AACnB,uEAAkG;AAE3F,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACN;IAA7B,YAA6B,OAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;IAAG,CAAC;IAEnE,UAAU,CAAC,QAAmD;QAC5D,OAAO,IAAA,4BAAiB,EAAC,kCAAwB,EAAE,QAAQ,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,KAAK,EAAE,EAAE,CACxF,IAAI,CAAC,OAAO,CAAC,KAAK,CAChB;YACE,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,KAAK;YACX,YAAY,EAAE,kCAAwB;YACtC,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,IAAA,4BAAS,EAAC,KAAK,CAAC;SACxB,EACD,EAAE,WAAW,EAAE,IAAI,EAAE,CACtB,CACF,CAAC;IACJ,CAAC;IAED,gBAAgB,CAAC,OAAe;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB;YACE,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,OAAO,OAAO,EAAE;YACtB,YAAY,EAAE,uCAA6B;YAC3C,OAAO,EAAE,IAAI;SACd,EACD,EAAE,WAAW,EAAE,IAAI,EAAE,CACtB,CAAC;IACJ,CAAC;IAED,WAAW,CAAC,KAA6C;QACvD,OAAO,IAAA,4BAAiB,EAAC,4CAAsB,EAAE,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CACzF,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;YACjB,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,OAAO,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI;YACV,YAAY,EAAE,+CAAyB;YACvC,OAAO,EAAE,IAAI;SACd,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAA;AA5CY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAE2B,gCAAyB;GADpD,wBAAwB,CA4CpC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
export declare const FindQuotesCriteriaSchema: z.ZodObject<{
|
|
3
3
|
quoteNumber: z.ZodOptional<z.ZodString>;
|
|
4
|
+
quoteTitle: z.ZodOptional<z.ZodString>;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
export declare const QuoteCurrencySchema: z.ZodObject<{
|
|
6
7
|
token: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-quotes.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/find-quotes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"find-quotes.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/find-quotes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;;;;iBAQ9B,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiCnC,CAAC"}
|
|
@@ -37,6 +37,7 @@ exports.FindQuotesResponseSchema = exports.QuoteCurrencySchema = exports.FindQuo
|
|
|
37
37
|
const z = __importStar(require("zod"));
|
|
38
38
|
exports.FindQuotesCriteriaSchema = z.object({
|
|
39
39
|
quoteNumber: z.string().optional(),
|
|
40
|
+
quoteTitle: z.string().optional(),
|
|
40
41
|
});
|
|
41
42
|
exports.QuoteCurrencySchema = z.object({
|
|
42
43
|
token: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-quotes.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/find-quotes.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACZ,QAAA,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"find-quotes.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/find-quotes.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACZ,QAAA,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AACU,QAAA,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE;CACjC,CAAC,CAAC;AACU,QAAA,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,CAAC,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AM,EAAE;YACtB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;YAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;SAClB,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const UpdateQuoteInputSchema: z.ZodObject<{
|
|
3
|
+
quoteId: z.ZodInt;
|
|
4
|
+
data: z.ZodObject<{
|
|
5
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
6
|
+
quoteTitle: z.ZodOptional<z.ZodString>;
|
|
7
|
+
referenceNumber: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const UpdateQuoteResponseSchema: z.ZodObject<{
|
|
11
|
+
data: z.ZodObject<{
|
|
12
|
+
quoteId: z.ZodInt;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
//# sourceMappingURL=update-quote.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-quote.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/update-quote.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,sBAAsB;;;;;;;iBAOjC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.UpdateQuoteResponseSchema = exports.UpdateQuoteInputSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
exports.UpdateQuoteInputSchema = z.object({
|
|
39
|
+
quoteId: z.int(),
|
|
40
|
+
data: z.object({
|
|
41
|
+
notes: z.string().optional(),
|
|
42
|
+
quoteTitle: z.string().optional(),
|
|
43
|
+
referenceNumber: z.string().optional(),
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
exports.UpdateQuoteResponseSchema = z.object({
|
|
47
|
+
data: z.object({
|
|
48
|
+
quoteId: z.int(),
|
|
49
|
+
}),
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=update-quote.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-quote.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/update-quote.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEZ,QAAA,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACvC,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE;KACjB,CAAC;CACH,CAAC,CAAC"}
|