@edgebound/bigcommerce 0.5.43 → 0.5.44
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/index.d.ts +3 -0
- package/dist/bigcommerce-entities/quotes/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/quotes/index.js +19 -0
- package/dist/bigcommerce-entities/quotes/index.js.map +1 -0
- package/dist/bigcommerce-entities/quotes/quotes.service.d.ts +121 -0
- package/dist/bigcommerce-entities/quotes/quotes.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/quotes/quotes.service.js +48 -0
- package/dist/bigcommerce-entities/quotes/quotes.service.js.map +1 -0
- package/dist/bigcommerce-entities/quotes/schemas/find-quotes.schema.d.ts +54 -0
- package/dist/bigcommerce-entities/quotes/schemas/find-quotes.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/quotes/schemas/find-quotes.schema.js +82 -0
- package/dist/bigcommerce-entities/quotes/schemas/find-quotes.schema.js.map +1 -0
- package/dist/bigcommerce-entities/quotes/schemas/get-quote-details.d.ts +79 -0
- package/dist/bigcommerce-entities/quotes/schemas/get-quote-details.d.ts.map +1 -0
- package/dist/bigcommerce-entities/quotes/schemas/get-quote-details.js +105 -0
- package/dist/bigcommerce-entities/quotes/schemas/get-quote-details.js.map +1 -0
- package/dist/bigcommerce-entities/quotes/schemas/index.d.ts +3 -0
- package/dist/bigcommerce-entities/quotes/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/quotes/schemas/index.js +19 -0
- package/dist/bigcommerce-entities/quotes/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/quotes/schemas/quote-status.schema.d.ts +2 -0
- package/dist/bigcommerce-entities/quotes/schemas/quote-status.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/quotes/schemas/quote-status.schema.js +3 -0
- package/dist/bigcommerce-entities/quotes/schemas/quote-status.schema.js.map +1 -0
- package/dist/bigcommerce.module.d.ts.map +1 -1
- package/dist/bigcommerce.module.js +2 -0
- package/dist/bigcommerce.module.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/quotes/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./quotes.service"), exports);
|
|
18
|
+
__exportStar(require("./schemas"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bigcommerce-entities/quotes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,4CAA0B"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import { BigCommerceFetcherService } from '../../core';
|
|
3
|
+
import { FindQuotesCriteriaSchema } from './schemas';
|
|
4
|
+
export declare class BigCommerceQuotesService {
|
|
5
|
+
private readonly fetcher;
|
|
6
|
+
constructor(fetcher: BigCommerceFetcherService);
|
|
7
|
+
findQuotes(criteria?: z.input<typeof FindQuotesCriteriaSchema>): import("neverthrow").ResultAsync<{
|
|
8
|
+
code: number;
|
|
9
|
+
data: {
|
|
10
|
+
quoteId: number;
|
|
11
|
+
quoteNumber: string;
|
|
12
|
+
referenceNumber: string;
|
|
13
|
+
quoteTitle: string;
|
|
14
|
+
createdBy: string;
|
|
15
|
+
company: string;
|
|
16
|
+
salesRep: string;
|
|
17
|
+
salesRepEmail: string;
|
|
18
|
+
createdAt: number;
|
|
19
|
+
updatedAt: number;
|
|
20
|
+
expiredAt: number;
|
|
21
|
+
subtotal: number;
|
|
22
|
+
status: number;
|
|
23
|
+
currency: {
|
|
24
|
+
token: string;
|
|
25
|
+
location: string;
|
|
26
|
+
currencyCode: string;
|
|
27
|
+
decimalToken: string;
|
|
28
|
+
decimalPlaces: number;
|
|
29
|
+
thousandsToken: string;
|
|
30
|
+
currencyExchangeRate: string;
|
|
31
|
+
};
|
|
32
|
+
extraFields: unknown[];
|
|
33
|
+
bcOrderId?: string | null | undefined;
|
|
34
|
+
orderId?: string | null | undefined;
|
|
35
|
+
channelId?: number | null | undefined;
|
|
36
|
+
channelName?: string | null | undefined;
|
|
37
|
+
}[];
|
|
38
|
+
meta: {
|
|
39
|
+
message: string;
|
|
40
|
+
pagination: {
|
|
41
|
+
totalCount: number;
|
|
42
|
+
offset: number;
|
|
43
|
+
limit: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}, import("../../core").BigCommerceError>;
|
|
47
|
+
findQuoteDetails(quoteId: string): import("neverthrow").ResultAsync<{
|
|
48
|
+
data: {
|
|
49
|
+
quoteNumber: string;
|
|
50
|
+
referenceNumber: string;
|
|
51
|
+
createdAt: number;
|
|
52
|
+
expiredAt: number;
|
|
53
|
+
status: number;
|
|
54
|
+
contactInfo: {
|
|
55
|
+
name: string;
|
|
56
|
+
email: string;
|
|
57
|
+
companyName?: string | null | undefined;
|
|
58
|
+
phoneNumber?: string | null | undefined;
|
|
59
|
+
};
|
|
60
|
+
subtotal: number;
|
|
61
|
+
discount: number;
|
|
62
|
+
grandTotal: number;
|
|
63
|
+
currency: {
|
|
64
|
+
token: string;
|
|
65
|
+
location: string;
|
|
66
|
+
currencyCode: string;
|
|
67
|
+
decimalToken: string;
|
|
68
|
+
decimalPlaces: number;
|
|
69
|
+
thousandsToken: string;
|
|
70
|
+
currencyExchangeRate: string;
|
|
71
|
+
};
|
|
72
|
+
productList: {
|
|
73
|
+
sku: string;
|
|
74
|
+
basePrice: number;
|
|
75
|
+
discount: number;
|
|
76
|
+
offeredPrice: number;
|
|
77
|
+
quantity: number;
|
|
78
|
+
productId: number;
|
|
79
|
+
productName: string;
|
|
80
|
+
purchaseHandled: boolean;
|
|
81
|
+
type: "physical" | "digital";
|
|
82
|
+
foundInBc: boolean;
|
|
83
|
+
variantId?: number | null | undefined;
|
|
84
|
+
costPrice?: number | null | undefined;
|
|
85
|
+
}[];
|
|
86
|
+
createdBy: string;
|
|
87
|
+
shippingTotal: number;
|
|
88
|
+
taxTotal: number;
|
|
89
|
+
totalAmount: number;
|
|
90
|
+
discountType: number;
|
|
91
|
+
storeInfo: {
|
|
92
|
+
storeName: string;
|
|
93
|
+
storeAddress: string;
|
|
94
|
+
storeCountry: string;
|
|
95
|
+
storeLogo: string;
|
|
96
|
+
storeUrl: string;
|
|
97
|
+
};
|
|
98
|
+
companyInfo: {
|
|
99
|
+
companyId: number;
|
|
100
|
+
companyName: string;
|
|
101
|
+
companyAddress: string;
|
|
102
|
+
companyCountry: string;
|
|
103
|
+
companyState: string;
|
|
104
|
+
companyCity: string;
|
|
105
|
+
companyZipCode: string;
|
|
106
|
+
phoneNumber: string;
|
|
107
|
+
companyEmail: string;
|
|
108
|
+
bcId: number | null;
|
|
109
|
+
};
|
|
110
|
+
salesRepInfo: {
|
|
111
|
+
salesRepName: string;
|
|
112
|
+
salesRepEmail: string;
|
|
113
|
+
salesRepPhoneNumber: string;
|
|
114
|
+
};
|
|
115
|
+
bcOrderId?: string | null | undefined;
|
|
116
|
+
orderId?: string | null | undefined;
|
|
117
|
+
discountValue?: number | null | undefined;
|
|
118
|
+
};
|
|
119
|
+
}, import("../../core").BigCommerceError>;
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=quotes.service.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYjC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BigCommerceQuotesService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const node_querystring_1 = require("node:querystring");
|
|
15
|
+
const core_1 = require("../../core");
|
|
16
|
+
const validate_1 = require("../../utils/validate");
|
|
17
|
+
const schemas_1 = require("./schemas");
|
|
18
|
+
let BigCommerceQuotesService = class BigCommerceQuotesService {
|
|
19
|
+
fetcher;
|
|
20
|
+
constructor(fetcher) {
|
|
21
|
+
this.fetcher = fetcher;
|
|
22
|
+
}
|
|
23
|
+
findQuotes(criteria) {
|
|
24
|
+
return (0, validate_1.validateInputData)(schemas_1.FindQuotesCriteriaSchema, criteria ?? {}).asyncAndThen((query) => this.fetcher.fetch({
|
|
25
|
+
isB2B: true,
|
|
26
|
+
method: 'GET',
|
|
27
|
+
path: 'rfq',
|
|
28
|
+
resultSchema: schemas_1.FindQuotesResponseSchema,
|
|
29
|
+
version: 'v3',
|
|
30
|
+
query: (0, node_querystring_1.stringify)(query),
|
|
31
|
+
}, { shouldRetry: true }));
|
|
32
|
+
}
|
|
33
|
+
findQuoteDetails(quoteId) {
|
|
34
|
+
return this.fetcher.fetch({
|
|
35
|
+
isB2B: true,
|
|
36
|
+
method: 'GET',
|
|
37
|
+
path: `rfq/${quoteId}`,
|
|
38
|
+
resultSchema: schemas_1.GetQuoteDetailsResponseSchema,
|
|
39
|
+
version: 'v3',
|
|
40
|
+
}, { shouldRetry: true });
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.BigCommerceQuotesService = BigCommerceQuotesService;
|
|
44
|
+
exports.BigCommerceQuotesService = BigCommerceQuotesService = __decorate([
|
|
45
|
+
(0, common_1.Injectable)(),
|
|
46
|
+
__metadata("design:paramtypes", [core_1.BigCommerceFetcherService])
|
|
47
|
+
], BigCommerceQuotesService);
|
|
48
|
+
//# sourceMappingURL=quotes.service.js.map
|
|
@@ -0,0 +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;AAEZ,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;CACF,CAAA;AA/BY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAE2B,gCAAyB;GADpD,wBAAwB,CA+BpC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const FindQuotesCriteriaSchema: z.ZodObject<{
|
|
3
|
+
quoteNumber: z.ZodOptional<z.ZodString>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const QuoteCurrencySchema: z.ZodObject<{
|
|
6
|
+
token: z.ZodString;
|
|
7
|
+
location: z.ZodString;
|
|
8
|
+
currencyCode: z.ZodString;
|
|
9
|
+
decimalToken: z.ZodString;
|
|
10
|
+
decimalPlaces: z.ZodNumber;
|
|
11
|
+
thousandsToken: z.ZodString;
|
|
12
|
+
currencyExchangeRate: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const FindQuotesResponseSchema: z.ZodObject<{
|
|
15
|
+
code: z.ZodNumber;
|
|
16
|
+
data: z.ZodArray<z.ZodObject<{
|
|
17
|
+
quoteId: z.ZodNumber;
|
|
18
|
+
quoteNumber: z.ZodString;
|
|
19
|
+
referenceNumber: z.ZodString;
|
|
20
|
+
quoteTitle: z.ZodString;
|
|
21
|
+
createdBy: z.ZodString;
|
|
22
|
+
company: z.ZodString;
|
|
23
|
+
salesRep: z.ZodString;
|
|
24
|
+
salesRepEmail: z.ZodString;
|
|
25
|
+
createdAt: z.ZodNumber;
|
|
26
|
+
updatedAt: z.ZodNumber;
|
|
27
|
+
expiredAt: z.ZodNumber;
|
|
28
|
+
subtotal: z.ZodNumber;
|
|
29
|
+
status: z.ZodInt;
|
|
30
|
+
currency: z.ZodObject<{
|
|
31
|
+
token: z.ZodString;
|
|
32
|
+
location: z.ZodString;
|
|
33
|
+
currencyCode: z.ZodString;
|
|
34
|
+
decimalToken: z.ZodString;
|
|
35
|
+
decimalPlaces: z.ZodNumber;
|
|
36
|
+
thousandsToken: z.ZodString;
|
|
37
|
+
currencyExchangeRate: z.ZodString;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
bcOrderId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
40
|
+
orderId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
|
+
extraFields: z.ZodArray<z.ZodUnknown>;
|
|
42
|
+
channelId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
43
|
+
channelName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
meta: z.ZodObject<{
|
|
46
|
+
message: z.ZodString;
|
|
47
|
+
pagination: z.ZodObject<{
|
|
48
|
+
totalCount: z.ZodNumber;
|
|
49
|
+
offset: z.ZodNumber;
|
|
50
|
+
limit: z.ZodNumber;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
//# sourceMappingURL=find-quotes.schema.d.ts.map
|
|
@@ -0,0 +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;;iBAEnC,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;;;;iBAQ9B,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiCnC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.FindQuotesResponseSchema = exports.QuoteCurrencySchema = exports.FindQuotesCriteriaSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
exports.FindQuotesCriteriaSchema = z.object({
|
|
39
|
+
quoteNumber: z.string().optional(),
|
|
40
|
+
});
|
|
41
|
+
exports.QuoteCurrencySchema = z.object({
|
|
42
|
+
token: z.string(),
|
|
43
|
+
location: z.string(),
|
|
44
|
+
currencyCode: z.string(),
|
|
45
|
+
decimalToken: z.string(),
|
|
46
|
+
decimalPlaces: z.number(),
|
|
47
|
+
thousandsToken: z.string(),
|
|
48
|
+
currencyExchangeRate: z.string(),
|
|
49
|
+
});
|
|
50
|
+
exports.FindQuotesResponseSchema = z.object({
|
|
51
|
+
code: z.number(),
|
|
52
|
+
data: z.array(z.object({
|
|
53
|
+
quoteId: z.number(),
|
|
54
|
+
quoteNumber: z.string(),
|
|
55
|
+
referenceNumber: z.string(),
|
|
56
|
+
quoteTitle: z.string(),
|
|
57
|
+
createdBy: z.string(),
|
|
58
|
+
company: z.string(),
|
|
59
|
+
salesRep: z.string(),
|
|
60
|
+
salesRepEmail: z.string(),
|
|
61
|
+
createdAt: z.number(),
|
|
62
|
+
updatedAt: z.number(),
|
|
63
|
+
expiredAt: z.number(),
|
|
64
|
+
subtotal: z.number(),
|
|
65
|
+
status: z.int(),
|
|
66
|
+
currency: exports.QuoteCurrencySchema,
|
|
67
|
+
bcOrderId: z.string().optional().nullable(),
|
|
68
|
+
orderId: z.string().optional().nullable(),
|
|
69
|
+
extraFields: z.array(z.unknown()),
|
|
70
|
+
channelId: z.number().optional().nullable(),
|
|
71
|
+
channelName: z.string().optional().nullable(),
|
|
72
|
+
})),
|
|
73
|
+
meta: z.object({
|
|
74
|
+
message: z.string(),
|
|
75
|
+
pagination: z.object({
|
|
76
|
+
totalCount: z.number(),
|
|
77
|
+
offset: z.number(),
|
|
78
|
+
limit: z.number(),
|
|
79
|
+
}),
|
|
80
|
+
}),
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=find-quotes.schema.js.map
|
|
@@ -0,0 +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,QA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CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACzC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC3C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAC9C,CAAC,CACH;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;YACnB,UAAU,EAAE,CAAC,CAAC,MAAM,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,79 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const GetQuoteDetailsResponseSchema: z.ZodObject<{
|
|
3
|
+
data: z.ZodObject<{
|
|
4
|
+
quoteNumber: z.ZodString;
|
|
5
|
+
referenceNumber: z.ZodString;
|
|
6
|
+
createdAt: z.ZodNumber;
|
|
7
|
+
expiredAt: z.ZodNumber;
|
|
8
|
+
status: z.ZodNumber;
|
|
9
|
+
contactInfo: z.ZodObject<{
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
email: z.ZodString;
|
|
12
|
+
companyName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
phoneNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
subtotal: z.ZodNumber;
|
|
16
|
+
discount: z.ZodNumber;
|
|
17
|
+
grandTotal: z.ZodNumber;
|
|
18
|
+
currency: z.ZodObject<{
|
|
19
|
+
token: z.ZodString;
|
|
20
|
+
location: z.ZodString;
|
|
21
|
+
currencyCode: z.ZodString;
|
|
22
|
+
decimalToken: z.ZodString;
|
|
23
|
+
decimalPlaces: z.ZodNumber;
|
|
24
|
+
thousandsToken: z.ZodString;
|
|
25
|
+
currencyExchangeRate: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
productList: z.ZodArray<z.ZodObject<{
|
|
28
|
+
sku: z.ZodString;
|
|
29
|
+
basePrice: z.ZodNumber;
|
|
30
|
+
discount: z.ZodNumber;
|
|
31
|
+
offeredPrice: z.ZodNumber;
|
|
32
|
+
quantity: z.ZodNumber;
|
|
33
|
+
productId: z.ZodInt;
|
|
34
|
+
variantId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
35
|
+
productName: z.ZodString;
|
|
36
|
+
purchaseHandled: z.ZodBoolean;
|
|
37
|
+
costPrice: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
38
|
+
type: z.ZodEnum<{
|
|
39
|
+
physical: "physical";
|
|
40
|
+
digital: "digital";
|
|
41
|
+
}>;
|
|
42
|
+
foundInBc: z.ZodBoolean;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
createdBy: z.ZodString;
|
|
45
|
+
bcOrderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
shippingTotal: z.ZodNumber;
|
|
48
|
+
taxTotal: z.ZodNumber;
|
|
49
|
+
totalAmount: z.ZodNumber;
|
|
50
|
+
discountType: z.ZodNumber;
|
|
51
|
+
discountValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
+
storeInfo: z.ZodObject<{
|
|
53
|
+
storeName: z.ZodString;
|
|
54
|
+
storeAddress: z.ZodString;
|
|
55
|
+
storeCountry: z.ZodString;
|
|
56
|
+
storeLogo: z.ZodString;
|
|
57
|
+
storeUrl: z.ZodString;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
companyInfo: z.ZodObject<{
|
|
60
|
+
companyId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
61
|
+
companyName: z.ZodString;
|
|
62
|
+
companyAddress: z.ZodString;
|
|
63
|
+
companyCountry: z.ZodString;
|
|
64
|
+
companyState: z.ZodString;
|
|
65
|
+
companyCity: z.ZodString;
|
|
66
|
+
companyZipCode: z.ZodString;
|
|
67
|
+
phoneNumber: z.ZodString;
|
|
68
|
+
companyEmail: z.ZodEmail;
|
|
69
|
+
bcId: z.ZodNullable<z.ZodInt>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
salesRepInfo: z.ZodObject<{
|
|
72
|
+
salesRepName: z.ZodString;
|
|
73
|
+
salesRepEmail: z.ZodEmail;
|
|
74
|
+
salesRepPhoneNumber: z.ZodString;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export type BigCommerceQuoteDetails = z.output<typeof GetQuoteDetailsResponseSchema>['data'];
|
|
79
|
+
//# sourceMappingURL=get-quote-details.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-quote-details.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/get-quote-details.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkExC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
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.GetQuoteDetailsResponseSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const products_1 = require("../../products");
|
|
39
|
+
const find_quotes_schema_1 = require("./find-quotes.schema");
|
|
40
|
+
exports.GetQuoteDetailsResponseSchema = z.object({
|
|
41
|
+
data: z.object({
|
|
42
|
+
quoteNumber: z.string(),
|
|
43
|
+
referenceNumber: z.string(),
|
|
44
|
+
createdAt: z.number(),
|
|
45
|
+
expiredAt: z.number(),
|
|
46
|
+
status: z.number(),
|
|
47
|
+
contactInfo: z.object({
|
|
48
|
+
name: z.string(),
|
|
49
|
+
email: z.string(),
|
|
50
|
+
companyName: z.string().optional().nullable(),
|
|
51
|
+
phoneNumber: z.string().optional().nullable(),
|
|
52
|
+
}),
|
|
53
|
+
subtotal: z.number(),
|
|
54
|
+
discount: z.number(),
|
|
55
|
+
grandTotal: z.number(),
|
|
56
|
+
currency: find_quotes_schema_1.QuoteCurrencySchema,
|
|
57
|
+
productList: z.array(z.object({
|
|
58
|
+
sku: z.string(),
|
|
59
|
+
basePrice: z.number(),
|
|
60
|
+
discount: z.number(),
|
|
61
|
+
offeredPrice: z.number(),
|
|
62
|
+
quantity: z.number(),
|
|
63
|
+
productId: z.int(),
|
|
64
|
+
variantId: z.int().nullable().optional(),
|
|
65
|
+
productName: z.string(),
|
|
66
|
+
purchaseHandled: z.boolean(),
|
|
67
|
+
costPrice: z.number().optional().nullable(),
|
|
68
|
+
type: products_1.ProductTypeSchema,
|
|
69
|
+
foundInBc: z.boolean(),
|
|
70
|
+
})),
|
|
71
|
+
createdBy: z.string(),
|
|
72
|
+
bcOrderId: z.string().nullable().optional(),
|
|
73
|
+
orderId: z.string().nullable().optional(),
|
|
74
|
+
shippingTotal: z.number(),
|
|
75
|
+
taxTotal: z.number(),
|
|
76
|
+
totalAmount: z.number(),
|
|
77
|
+
discountType: z.number(),
|
|
78
|
+
discountValue: z.number().nullable().optional(),
|
|
79
|
+
storeInfo: z.object({
|
|
80
|
+
storeName: z.string(),
|
|
81
|
+
storeAddress: z.string(),
|
|
82
|
+
storeCountry: z.string(),
|
|
83
|
+
storeLogo: z.string(),
|
|
84
|
+
storeUrl: z.string(),
|
|
85
|
+
}),
|
|
86
|
+
companyInfo: z.object({
|
|
87
|
+
companyId: z.string().transform(Number),
|
|
88
|
+
companyName: z.string(),
|
|
89
|
+
companyAddress: z.string(),
|
|
90
|
+
companyCountry: z.string(),
|
|
91
|
+
companyState: z.string(),
|
|
92
|
+
companyCity: z.string(),
|
|
93
|
+
companyZipCode: z.string(),
|
|
94
|
+
phoneNumber: z.string(),
|
|
95
|
+
companyEmail: z.email(),
|
|
96
|
+
bcId: z.int().nullable(),
|
|
97
|
+
}),
|
|
98
|
+
salesRepInfo: z.object({
|
|
99
|
+
salesRepName: z.string(),
|
|
100
|
+
salesRepEmail: z.email(),
|
|
101
|
+
salesRepPhoneNumber: z.string(),
|
|
102
|
+
}),
|
|
103
|
+
}),
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=get-quote-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-quote-details.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/get-quote-details.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,6CAAmD;AACnD,6DAA2D;AAC9C,QAAA,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;QAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;YAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;YACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;YAC7C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE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AAC;AACrC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./find-quotes.schema"), exports);
|
|
18
|
+
__exportStar(require("./get-quote-details"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,sDAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quote-status.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/quote-status.schema.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quote-status.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/quotes/schemas/quote-status.schema.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bigcommerce.module.d.ts","sourceRoot":"","sources":["../src/bigcommerce.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAU,KAAK,aAAa,EAAiB,MAAM,gBAAgB,CAAC;AAC3F,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"bigcommerce.module.d.ts","sourceRoot":"","sources":["../src/bigcommerce.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAU,KAAK,aAAa,EAAiB,MAAM,gBAAgB,CAAC;AAC3F,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAoBzB,OAAO,EAAE,uBAAuB,EAA4B,MAAM,sBAAsB,CAAC;AAoBzF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAqBa,iBAAiB;IAC5B,MAAM,CAAC,YAAY,CACjB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,EAC/C,MAAM,CAAC,EAAE,MAAM,GACd,aAAa;CAkBjB"}
|
|
@@ -16,6 +16,7 @@ const orders_service_1 = require("./bigcommerce-entities/orders/orders.service")
|
|
|
16
16
|
const payments_service_1 = require("./bigcommerce-entities/payments/payments.service");
|
|
17
17
|
const price_lists_service_1 = require("./bigcommerce-entities/price-lists/price-lists.service");
|
|
18
18
|
const products_service_1 = require("./bigcommerce-entities/products/products.service");
|
|
19
|
+
const quotes_1 = require("./bigcommerce-entities/quotes");
|
|
19
20
|
const sales_staff_service_1 = require("./bigcommerce-entities/sales-staff/sales-staff.service");
|
|
20
21
|
const bigcommerce_fetcher_service_1 = require("./core/bigcommerce-fetcher.service");
|
|
21
22
|
const config_module_1 = require("./core/config.module");
|
|
@@ -36,6 +37,7 @@ const services = [
|
|
|
36
37
|
sales_staff_service_1.BigCommerceSalesStaffService,
|
|
37
38
|
bigcommerce_entities_1.BigCommercePriceListsRecordsService,
|
|
38
39
|
bigcommerce_entities_1.BigCommerceCatalogService,
|
|
40
|
+
quotes_1.BigCommerceQuotesService,
|
|
39
41
|
];
|
|
40
42
|
/**
|
|
41
43
|
* Punto de entrada para consumir las APIs de BigCommerce dentro de la aplicación NestJS.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bigcommerce.module.js","sourceRoot":"","sources":["../src/bigcommerce.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA2F;AAE3F,iEAKgC;AAChC,sGAA4G;AAC5G,0FAAiG;AACjG,iFAAwF;AACxF,uFAA8F;AAC9F,gGAAsG;AACtG,uFAA8F;AAC9F,gGAAsG;AACtG,oFAG4C;AAC5C,wDAAuD;AACvD,wDAAyF;AACzF,MAAM,QAAQ,GAAe;IAC3B;QACE,OAAO,EAAE,uDAAyB;QAClC,QAAQ,EAAE,2DAA6B;KACxC;IACD,sDAA8B;IAC9B,kDAA2B;IAC3B,+CAA2B;IAC3B,kDAA2B;IAC3B,yCAAwB;IACxB,6CAA0B;IAC1B,kDAA4B;IAC5B,6CAA0B;IAC1B,kDAA4B;IAC5B,0DAAmC;IACnC,gDAAyB;
|
|
1
|
+
{"version":3,"file":"bigcommerce.module.js","sourceRoot":"","sources":["../src/bigcommerce.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA2F;AAE3F,iEAKgC;AAChC,sGAA4G;AAC5G,0FAAiG;AACjG,iFAAwF;AACxF,uFAA8F;AAC9F,gGAAsG;AACtG,uFAA8F;AAC9F,0DAAyE;AACzE,gGAAsG;AACtG,oFAG4C;AAC5C,wDAAuD;AACvD,wDAAyF;AACzF,MAAM,QAAQ,GAAe;IAC3B;QACE,OAAO,EAAE,uDAAyB;QAClC,QAAQ,EAAE,2DAA6B;KACxC;IACD,sDAA8B;IAC9B,kDAA2B;IAC3B,+CAA2B;IAC3B,kDAA2B;IAC3B,yCAAwB;IACxB,6CAA0B;IAC1B,kDAA4B;IAC5B,6CAA0B;IAC1B,kDAA4B;IAC5B,0DAAmC;IACnC,gDAAyB;I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,2BAA2B,CAAC;wBACtD,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC;qBACrD;iBACF,CAAC;aACH,CAAC;SACH;KACF,CAAC;GACW,iBAAiB,CAsB7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgebound/bigcommerce",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.44",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"main": "./dist/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",
|