@edgebound/bigcommerce 0.5.55 → 0.5.57
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 +1 -69
- package/dist/bigcommerce-entities/quotes/quotes.service.d.ts.map +1 -1
- package/dist/bigcommerce-entities/quotes/quotes.service.js +1 -1
- package/dist/bigcommerce-entities/quotes/quotes.service.js.map +1 -1
- package/dist/bigcommerce-entities/quotes/schemas/find-quotes.schema.d.ts +22 -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 +16 -1
- package/dist/bigcommerce-entities/quotes/schemas/find-quotes.schema.js.map +1 -1
- package/package.json +3 -3
|
@@ -120,75 +120,7 @@ export declare class BigCommerceQuotesService {
|
|
|
120
120
|
}, import("../../core").BigCommerceError>;
|
|
121
121
|
updateQuote(input: z.input<typeof UpdateQuoteInputSchema>): import("neverthrow").ResultAsync<{
|
|
122
122
|
data: {
|
|
123
|
-
|
|
124
|
-
referenceNumber: string;
|
|
125
|
-
createdAt: number;
|
|
126
|
-
expiredAt: number;
|
|
127
|
-
status: number;
|
|
128
|
-
contactInfo: {
|
|
129
|
-
name: string;
|
|
130
|
-
email: string;
|
|
131
|
-
companyName?: string | null | undefined;
|
|
132
|
-
phoneNumber?: string | null | undefined;
|
|
133
|
-
};
|
|
134
|
-
subtotal: number;
|
|
135
|
-
discount: number;
|
|
136
|
-
grandTotal: number;
|
|
137
|
-
currency: {
|
|
138
|
-
token: string;
|
|
139
|
-
location: string;
|
|
140
|
-
currencyCode: string;
|
|
141
|
-
decimalToken: string;
|
|
142
|
-
decimalPlaces: number;
|
|
143
|
-
thousandsToken: string;
|
|
144
|
-
currencyExchangeRate: string;
|
|
145
|
-
};
|
|
146
|
-
productList: {
|
|
147
|
-
sku: string;
|
|
148
|
-
basePrice: number;
|
|
149
|
-
discount: number;
|
|
150
|
-
offeredPrice: number;
|
|
151
|
-
quantity: number;
|
|
152
|
-
productId: number;
|
|
153
|
-
productName: string;
|
|
154
|
-
purchaseHandled: boolean;
|
|
155
|
-
type: "physical" | "digital";
|
|
156
|
-
foundInBc: boolean;
|
|
157
|
-
variantId?: number | null | undefined;
|
|
158
|
-
costPrice?: number | null | undefined;
|
|
159
|
-
}[];
|
|
160
|
-
createdBy: string;
|
|
161
|
-
shippingTotal: number;
|
|
162
|
-
taxTotal: number;
|
|
163
|
-
totalAmount: number;
|
|
164
|
-
discountType: number;
|
|
165
|
-
storeInfo: {
|
|
166
|
-
storeName: string;
|
|
167
|
-
storeAddress: string;
|
|
168
|
-
storeCountry: string;
|
|
169
|
-
storeLogo: string;
|
|
170
|
-
storeUrl: string;
|
|
171
|
-
};
|
|
172
|
-
companyInfo: {
|
|
173
|
-
companyId: number;
|
|
174
|
-
companyName: string;
|
|
175
|
-
companyAddress: string;
|
|
176
|
-
companyCountry: string;
|
|
177
|
-
companyState: string;
|
|
178
|
-
companyCity: string;
|
|
179
|
-
companyZipCode: string;
|
|
180
|
-
phoneNumber: string;
|
|
181
|
-
companyEmail: string;
|
|
182
|
-
bcId: number | null;
|
|
183
|
-
};
|
|
184
|
-
salesRepInfo: {
|
|
185
|
-
salesRepName: string;
|
|
186
|
-
salesRepEmail: string;
|
|
187
|
-
salesRepPhoneNumber: string;
|
|
188
|
-
};
|
|
189
|
-
bcOrderId?: string | null | undefined;
|
|
190
|
-
orderId?: string | null | undefined;
|
|
191
|
-
discountValue?: number | null | undefined;
|
|
123
|
+
quoteId: number;
|
|
192
124
|
};
|
|
193
125
|
}, import("../../core").BigCommerceError>;
|
|
194
126
|
}
|
|
@@ -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,OAAO,EAAE,sBAAsB,
|
|
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"}
|
|
@@ -46,7 +46,7 @@ let BigCommerceQuotesService = class BigCommerceQuotesService {
|
|
|
46
46
|
path: `rfq/${quoteId}`,
|
|
47
47
|
method: 'PUT',
|
|
48
48
|
body: data,
|
|
49
|
-
resultSchema:
|
|
49
|
+
resultSchema: update_quote_schema_1.UpdateQuoteResponseSchema,
|
|
50
50
|
version: 'v3',
|
|
51
51
|
}));
|
|
52
52
|
}
|
|
@@ -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;AACnB,
|
|
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,7 +1,29 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
+
export declare enum BigCommerceQuoteStatus {
|
|
3
|
+
NEW = "0",
|
|
4
|
+
IN_PROCESS = "2",
|
|
5
|
+
UPDATED_BY_CUSTOMER = "3",
|
|
6
|
+
ORDERED = "4",
|
|
7
|
+
EXPIRED = "5",
|
|
8
|
+
ARCHIVED = "6",
|
|
9
|
+
DRAFT = "7"
|
|
10
|
+
}
|
|
2
11
|
export declare const FindQuotesCriteriaSchema: z.ZodObject<{
|
|
3
12
|
quoteNumber: z.ZodOptional<z.ZodString>;
|
|
4
13
|
quoteTitle: z.ZodOptional<z.ZodString>;
|
|
14
|
+
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
company: "company";
|
|
16
|
+
createdAt: "createdAt";
|
|
17
|
+
updatedAt: "updatedAt";
|
|
18
|
+
status: "status";
|
|
19
|
+
salesRep: "salesRep";
|
|
20
|
+
expiredAt: "expiredAt";
|
|
21
|
+
}>>;
|
|
22
|
+
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
23
|
+
asc: "asc";
|
|
24
|
+
desc: "desc";
|
|
25
|
+
}>>;
|
|
26
|
+
status: z.ZodOptional<z.ZodEnum<typeof BigCommerceQuoteStatus>>;
|
|
5
27
|
}, z.core.$strip>;
|
|
6
28
|
export declare const QuoteCurrencySchema: z.ZodObject<{
|
|
7
29
|
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;
|
|
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;AAEzB,oBAAY,sBAAsB;IAChC,GAAG,MAAM;IACT,UAAU,MAAM;IAChB,mBAAmB,MAAM;IACzB,OAAO,MAAM;IACb,OAAO,MAAM;IACb,QAAQ,MAAM;IACd,KAAK,MAAM;CACZ;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;iBAQnC,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;;;;iBAQ9B,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiCnC,CAAC"}
|
|
@@ -33,11 +33,26 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.FindQuotesResponseSchema = exports.QuoteCurrencySchema = exports.FindQuotesCriteriaSchema = void 0;
|
|
36
|
+
exports.FindQuotesResponseSchema = exports.QuoteCurrencySchema = exports.FindQuotesCriteriaSchema = exports.BigCommerceQuoteStatus = void 0;
|
|
37
37
|
const z = __importStar(require("zod"));
|
|
38
|
+
var BigCommerceQuoteStatus;
|
|
39
|
+
(function (BigCommerceQuoteStatus) {
|
|
40
|
+
BigCommerceQuoteStatus["NEW"] = "0";
|
|
41
|
+
BigCommerceQuoteStatus["IN_PROCESS"] = "2";
|
|
42
|
+
BigCommerceQuoteStatus["UPDATED_BY_CUSTOMER"] = "3";
|
|
43
|
+
BigCommerceQuoteStatus["ORDERED"] = "4";
|
|
44
|
+
BigCommerceQuoteStatus["EXPIRED"] = "5";
|
|
45
|
+
BigCommerceQuoteStatus["ARCHIVED"] = "6";
|
|
46
|
+
BigCommerceQuoteStatus["DRAFT"] = "7";
|
|
47
|
+
})(BigCommerceQuoteStatus || (exports.BigCommerceQuoteStatus = BigCommerceQuoteStatus = {}));
|
|
38
48
|
exports.FindQuotesCriteriaSchema = z.object({
|
|
39
49
|
quoteNumber: z.string().optional(),
|
|
40
50
|
quoteTitle: z.string().optional(),
|
|
51
|
+
sortBy: z
|
|
52
|
+
.enum(['company', 'status', 'salesRep', 'createdAt', 'expiredAt', 'updatedAt'])
|
|
53
|
+
.optional(),
|
|
54
|
+
orderBy: z.enum(['asc', 'desc']).optional(),
|
|
55
|
+
status: z.enum(BigCommerceQuoteStatus).optional(),
|
|
41
56
|
});
|
|
42
57
|
exports.QuoteCurrencySchema = z.object({
|
|
43
58
|
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;
|
|
1
|
+
{"version":3,"file":"find-quotes.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/find-quotes.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,IAAY,sBAQX;AARD,WAAY,sBAAsB;IAChC,mCAAS,CAAA;IACT,0CAAgB,CAAA;IAChB,mDAAyB,CAAA;IACzB,uCAAa,CAAA;IACb,uCAAa,CAAA;IACb,wCAAc,CAAA;IACd,qCAAW,CAAA;AACb,CAAC,EARW,sBAAsB,sCAAtB,sBAAsB,QAQjC;AAEY,QAAA,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC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index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"reflect-metadata": "^0.2.2",
|
|
23
23
|
"rxjs": "^7.8.2",
|
|
24
24
|
"zod": "^4.3.3",
|
|
25
|
-
"@edgebound/
|
|
26
|
-
"@edgebound/
|
|
25
|
+
"@edgebound/typescript-config": "0.0.1",
|
|
26
|
+
"@edgebound/eslint-config": "0.0.4"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@nestjs/common": "^11.1.12",
|