@smartbills/sdk 0.0.2-alpha.21 → 0.0.2-alpha.22
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/@types/services/oauth/OAuthService.d.ts +1 -1
- package/dist/@types/services/prices/PriceService.d.ts +2 -2
- package/dist/@types/services/product-images/ProductImageService.d.ts +1 -1
- package/dist/@types/services/product-variants/ProductVariantService.d.ts +1 -1
- package/dist/@types/services/receipts/ReceiptCreateRequest.d.ts +1 -1
- package/dist/@types/services/reviews/ReviewService.d.ts +1 -1
- package/dist/cjs/_virtual/__polyfill-node.util.cjs +11 -0
- package/dist/cjs/_virtual/__polyfill-node.util.cjs.map +1 -0
- package/dist/cjs/_virtual/_commonjsHelpers.cjs +37 -0
- package/dist/cjs/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node._inherits.cjs +31 -0
- package/dist/cjs/_virtual/_polyfill-node._inherits.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.buffer.cjs +1985 -0
- package/dist/cjs/_virtual/_polyfill-node.buffer.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.global.cjs +10 -0
- package/dist/cjs/_virtual/_polyfill-node.global.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.process.cjs +253 -0
- package/dist/cjs/_virtual/_polyfill-node.process.cjs.map +1 -0
- package/dist/cjs/_virtual/_polyfill-node.util.cjs +707 -0
- package/dist/cjs/_virtual/_polyfill-node.util.cjs.map +1 -0
- package/dist/cjs/_virtual/index.cjs +6 -0
- package/dist/cjs/_virtual/index.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bind/callBound.cjs +18 -0
- package/dist/cjs/node_modules/call-bind/callBound.cjs.map +1 -0
- package/dist/cjs/node_modules/call-bind/index.cjs +42 -0
- package/dist/cjs/node_modules/call-bind/index.cjs.map +1 -0
- package/dist/cjs/node_modules/define-data-property/index.cjs +56 -0
- package/dist/cjs/node_modules/define-data-property/index.cjs.map +1 -0
- package/dist/cjs/node_modules/es-define-property/index.cjs +29 -0
- package/dist/cjs/node_modules/es-define-property/index.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/eval.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/eval.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/index.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/index.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/range.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/range.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/ref.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/ref.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/syntax.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/syntax.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/type.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/type.cjs.map +1 -0
- package/dist/cjs/node_modules/es-errors/uri.cjs +7 -0
- package/dist/cjs/node_modules/es-errors/uri.cjs.map +1 -0
- package/dist/cjs/node_modules/function-bind/implementation.cjs +69 -0
- package/dist/cjs/node_modules/function-bind/implementation.cjs.map +1 -0
- package/dist/cjs/node_modules/function-bind/index.cjs +9 -0
- package/dist/cjs/node_modules/function-bind/index.cjs.map +1 -0
- package/dist/cjs/node_modules/get-intrinsic/index.cjs +340 -0
- package/dist/cjs/node_modules/get-intrinsic/index.cjs.map +1 -0
- package/dist/cjs/node_modules/gopd/index.cjs +18 -0
- package/dist/cjs/node_modules/gopd/index.cjs.map +1 -0
- package/dist/cjs/node_modules/has-property-descriptors/index.cjs +26 -0
- package/dist/cjs/node_modules/has-property-descriptors/index.cjs.map +1 -0
- package/dist/cjs/node_modules/has-proto/index.cjs +18 -0
- package/dist/cjs/node_modules/has-proto/index.cjs.map +1 -0
- package/dist/cjs/node_modules/has-symbols/index.cjs +24 -0
- package/dist/cjs/node_modules/has-symbols/index.cjs.map +1 -0
- package/dist/cjs/node_modules/has-symbols/shams.cjs +60 -0
- package/dist/cjs/node_modules/has-symbols/shams.cjs.map +1 -0
- package/dist/cjs/node_modules/hasown/index.cjs +13 -0
- package/dist/cjs/node_modules/hasown/index.cjs.map +1 -0
- package/dist/cjs/node_modules/object-inspect/index.cjs +522 -0
- package/dist/cjs/node_modules/object-inspect/index.cjs.map +1 -0
- package/dist/cjs/node_modules/object-inspect/util.inspect.cjs +8 -0
- package/dist/cjs/node_modules/object-inspect/util.inspect.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/formats.cjs +24 -0
- package/dist/cjs/node_modules/qs/lib/formats.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/index.cjs +21 -0
- package/dist/cjs/node_modules/qs/lib/index.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/parse.cjs +258 -0
- package/dist/cjs/node_modules/qs/lib/parse.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/stringify.cjs +250 -0
- package/dist/cjs/node_modules/qs/lib/stringify.cjs.map +1 -0
- package/dist/cjs/node_modules/qs/lib/utils.cjs +229 -0
- package/dist/cjs/node_modules/qs/lib/utils.cjs.map +1 -0
- package/dist/cjs/node_modules/set-function-length/index.cjs +47 -0
- package/dist/cjs/node_modules/set-function-length/index.cjs.map +1 -0
- package/dist/cjs/node_modules/side-channel/index.cjs +145 -0
- package/dist/cjs/node_modules/side-channel/index.cjs.map +1 -0
- package/dist/cjs/packages/sdk/package.json.cjs +1 -1
- package/dist/cjs/services/oauth/OAuthService.cjs +20 -10
- package/dist/cjs/services/oauth/OAuthService.cjs.map +1 -1
- package/dist/esm/_virtual/__polyfill-node.util.mjs +7 -0
- package/dist/esm/_virtual/__polyfill-node.util.mjs.map +1 -0
- package/dist/esm/_virtual/_commonjsHelpers.mjs +33 -0
- package/dist/esm/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node._inherits.mjs +27 -0
- package/dist/esm/_virtual/_polyfill-node._inherits.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.buffer.mjs +1981 -0
- package/dist/esm/_virtual/_polyfill-node.buffer.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.global.mjs +6 -0
- package/dist/esm/_virtual/_polyfill-node.global.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.process.mjs +226 -0
- package/dist/esm/_virtual/_polyfill-node.process.mjs.map +1 -0
- package/dist/esm/_virtual/_polyfill-node.util.mjs +679 -0
- package/dist/esm/_virtual/_polyfill-node.util.mjs.map +1 -0
- package/dist/esm/_virtual/index.mjs +4 -0
- package/dist/esm/_virtual/index.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind/callBound.mjs +16 -0
- package/dist/esm/node_modules/call-bind/callBound.mjs.map +1 -0
- package/dist/esm/node_modules/call-bind/index.mjs +40 -0
- package/dist/esm/node_modules/call-bind/index.mjs.map +1 -0
- package/dist/esm/node_modules/define-data-property/index.mjs +54 -0
- package/dist/esm/node_modules/define-data-property/index.mjs.map +1 -0
- package/dist/esm/node_modules/es-define-property/index.mjs +27 -0
- package/dist/esm/node_modules/es-define-property/index.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/eval.mjs +5 -0
- package/dist/esm/node_modules/es-errors/eval.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/index.mjs +5 -0
- package/dist/esm/node_modules/es-errors/index.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/range.mjs +5 -0
- package/dist/esm/node_modules/es-errors/range.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/ref.mjs +5 -0
- package/dist/esm/node_modules/es-errors/ref.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/syntax.mjs +5 -0
- package/dist/esm/node_modules/es-errors/syntax.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/type.mjs +5 -0
- package/dist/esm/node_modules/es-errors/type.mjs.map +1 -0
- package/dist/esm/node_modules/es-errors/uri.mjs +5 -0
- package/dist/esm/node_modules/es-errors/uri.mjs.map +1 -0
- package/dist/esm/node_modules/function-bind/implementation.mjs +67 -0
- package/dist/esm/node_modules/function-bind/implementation.mjs.map +1 -0
- package/dist/esm/node_modules/function-bind/index.mjs +7 -0
- package/dist/esm/node_modules/function-bind/index.mjs.map +1 -0
- package/dist/esm/node_modules/get-intrinsic/index.mjs +338 -0
- package/dist/esm/node_modules/get-intrinsic/index.mjs.map +1 -0
- package/dist/esm/node_modules/gopd/index.mjs +16 -0
- package/dist/esm/node_modules/gopd/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-property-descriptors/index.mjs +24 -0
- package/dist/esm/node_modules/has-property-descriptors/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-proto/index.mjs +16 -0
- package/dist/esm/node_modules/has-proto/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-symbols/index.mjs +22 -0
- package/dist/esm/node_modules/has-symbols/index.mjs.map +1 -0
- package/dist/esm/node_modules/has-symbols/shams.mjs +58 -0
- package/dist/esm/node_modules/has-symbols/shams.mjs.map +1 -0
- package/dist/esm/node_modules/hasown/index.mjs +11 -0
- package/dist/esm/node_modules/hasown/index.mjs.map +1 -0
- package/dist/esm/node_modules/object-inspect/index.mjs +520 -0
- package/dist/esm/node_modules/object-inspect/index.mjs.map +1 -0
- package/dist/esm/node_modules/object-inspect/util.inspect.mjs +6 -0
- package/dist/esm/node_modules/object-inspect/util.inspect.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/formats.mjs +22 -0
- package/dist/esm/node_modules/qs/lib/formats.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/index.mjs +17 -0
- package/dist/esm/node_modules/qs/lib/index.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/parse.mjs +256 -0
- package/dist/esm/node_modules/qs/lib/parse.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/stringify.mjs +248 -0
- package/dist/esm/node_modules/qs/lib/stringify.mjs.map +1 -0
- package/dist/esm/node_modules/qs/lib/utils.mjs +227 -0
- package/dist/esm/node_modules/qs/lib/utils.mjs.map +1 -0
- package/dist/esm/node_modules/set-function-length/index.mjs +45 -0
- package/dist/esm/node_modules/set-function-length/index.mjs.map +1 -0
- package/dist/esm/node_modules/side-channel/index.mjs +143 -0
- package/dist/esm/node_modules/side-channel/index.mjs.map +1 -0
- package/dist/esm/packages/sdk/package.json.mjs +1 -1
- package/dist/esm/services/oauth/OAuthService.mjs +20 -10
- package/dist/esm/services/oauth/OAuthService.mjs.map +1 -1
- package/dist/umd/index.js +5072 -13
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SBServiceOptions } from '../../client/SBServiceOptions.js';
|
|
2
1
|
import { SBService } from '../SBService.js';
|
|
3
2
|
import { AccessTokenResponse } from './AccessTokenResponse.js';
|
|
4
3
|
import { AuthorizationCodeResponse } from './AuthorizationCodeResponse.js';
|
|
5
4
|
import { AuthorizeRequest } from './AuthorizeRequest.js';
|
|
6
5
|
import { GetTokenRequest } from './GetTokenRequest.js';
|
|
7
6
|
import { RefreshTokenRequest } from './RefreshTokenRequest.js';
|
|
7
|
+
import { SBServiceOptions } from '../../client/SBServiceOptions.js';
|
|
8
8
|
|
|
9
9
|
declare class OAuthService extends SBService {
|
|
10
10
|
constructor(options?: SBServiceOptions);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SBRequestOptions } from '../../client/SBRequestOption.js';
|
|
2
2
|
import { AxiosRequestConfig } from 'axios';
|
|
3
3
|
import { SBService } from '../SBService.js';
|
|
4
|
-
import { IListable } from '../../interfaces/IListable.js';
|
|
5
4
|
import { PaginatedResult } from '../../utilities/PaginatedResult.js';
|
|
5
|
+
import { SBPrice } from '../../entities/prices/SBPrice.js';
|
|
6
6
|
import { IDeletable } from '../../interfaces/IDeletable.js';
|
|
7
7
|
import { IRetrievableById } from '../../interfaces/IRetrievable.js';
|
|
8
|
+
import { IListable } from '../../interfaces/IListable.js';
|
|
8
9
|
import { IUpdatable } from '../../interfaces/IUpdatable.js';
|
|
9
|
-
import { SBPrice } from '../../entities/prices/SBPrice.js';
|
|
10
10
|
import { PriceCreateRequest } from './PriceCreateRequest.js';
|
|
11
11
|
import { PriceUpdateRequest } from './PriceUpdateRequest.js';
|
|
12
12
|
import { PriceListRequest } from './PricesListRequest.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SBRequestOptions } from '../../client/SBRequestOption.js';
|
|
2
2
|
import { AxiosRequestConfig } from 'axios';
|
|
3
3
|
import { SBService } from '../SBService.js';
|
|
4
|
-
import { IListable } from '../../interfaces/IListable.js';
|
|
5
4
|
import { PaginatedResult } from '../../utilities/PaginatedResult.js';
|
|
6
5
|
import { SBProductImage } from '../../entities/products/SBProductImage.js';
|
|
7
6
|
import { IDeletable } from '../../interfaces/IDeletable.js';
|
|
8
7
|
import { IRetrievableById } from '../../interfaces/IRetrievable.js';
|
|
8
|
+
import { IListable } from '../../interfaces/IListable.js';
|
|
9
9
|
import { IUpdatable } from '../../interfaces/IUpdatable.js';
|
|
10
10
|
import { ProductImageCreateRequest } from './ProductImageCreateRequest.js';
|
|
11
11
|
import { ProductImageListRequest } from './ProductImageListRequest.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SBRequestOptions } from '../../client/SBRequestOption.js';
|
|
2
2
|
import { AxiosRequestConfig } from 'axios';
|
|
3
3
|
import { SBService } from '../SBService.js';
|
|
4
|
-
import { IListable } from '../../interfaces/IListable.js';
|
|
5
4
|
import { PaginatedResult } from '../../utilities/PaginatedResult.js';
|
|
6
5
|
import { SBProductVariant } from '../../entities/products/SBProductVariant.js';
|
|
7
6
|
import { IDeletable } from '../../interfaces/IDeletable.js';
|
|
8
7
|
import { IRetrievableById } from '../../interfaces/IRetrievable.js';
|
|
8
|
+
import { IListable } from '../../interfaces/IListable.js';
|
|
9
9
|
import { IUpdatable } from '../../interfaces/IUpdatable.js';
|
|
10
10
|
import { ProductVariantCreateRequest } from './ProductVariantCreateRequest.js';
|
|
11
11
|
import { ProductVariantUpdateRequest } from './ProductVariantUpdateRequest.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BillingAddressCreateRequest } from '../addresses/BillingAddressCreateRequest.js';
|
|
2
1
|
import { ITimestamp } from '../../interfaces/ITimestamp.js';
|
|
3
2
|
import { SBMoney } from '../../entities/money/SBMoney.js';
|
|
4
3
|
import { SBReceiptType } from '../../entities/receipts/SBReceiptType.js';
|
|
5
4
|
import { BarcodeCreateRequest } from '../barcode/BarcodeCreateRequest.js';
|
|
5
|
+
import { BillingAddressCreateRequest } from '../addresses/BillingAddressCreateRequest.js';
|
|
6
6
|
import { MerchantCreateRequest } from '../merchants/MerchantCreateRequest.js';
|
|
7
7
|
import { ReceiptDiscountCreateRequest } from './ReceiptDiscountCreateRequest.js';
|
|
8
8
|
import { ReceiptTransactionCreateRequest } from '../receiptTransactions/ReceiptTransactionCreateRequest.js';
|
|
@@ -6,8 +6,8 @@ import { SBReview } from '../../entities/reviews/SBReview.js';
|
|
|
6
6
|
import { SBService } from '../SBService.js';
|
|
7
7
|
import { PaginatedResult } from '../../utilities/PaginatedResult.js';
|
|
8
8
|
import { IDeletable } from '../../interfaces/IDeletable.js';
|
|
9
|
-
import { ICreatable } from '../../interfaces/ICreatable.js';
|
|
10
9
|
import { IRetrievableById } from '../../interfaces/IRetrievable.js';
|
|
10
|
+
import { ICreatable } from '../../interfaces/ICreatable.js';
|
|
11
11
|
import { ReviewCreateRequest } from './ReviewCreateRequest.js';
|
|
12
12
|
import { ReviewListRequest } from './ReviewListRequest.js';
|
|
13
13
|
import { ReviewUpdateRequest } from './ReviewUpdateRequest.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _polyfillNode_util = require('./_polyfill-node.util.cjs');
|
|
6
|
+
var _commonjsHelpers = require('./_commonjsHelpers.cjs');
|
|
7
|
+
|
|
8
|
+
var require$$0 = /*@__PURE__*/_commonjsHelpers.getAugmentedNamespace(_polyfillNode_util);
|
|
9
|
+
|
|
10
|
+
exports.default = require$$0;
|
|
11
|
+
//# sourceMappingURL=__polyfill-node.util.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__polyfill-node.util.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
|
+
|
|
5
|
+
function getDefaultExportFromCjs (x) {
|
|
6
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function getAugmentedNamespace(n) {
|
|
10
|
+
if (n.__esModule) return n;
|
|
11
|
+
var f = n.default;
|
|
12
|
+
if (typeof f == "function") {
|
|
13
|
+
var a = function a () {
|
|
14
|
+
if (this instanceof a) {
|
|
15
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
16
|
+
}
|
|
17
|
+
return f.apply(this, arguments);
|
|
18
|
+
};
|
|
19
|
+
a.prototype = f.prototype;
|
|
20
|
+
} else a = {};
|
|
21
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
22
|
+
Object.keys(n).forEach(function (k) {
|
|
23
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
24
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return n[k];
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
return a;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
exports.commonjsGlobal = commonjsGlobal;
|
|
35
|
+
exports.getAugmentedNamespace = getAugmentedNamespace;
|
|
36
|
+
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
37
|
+
//# sourceMappingURL=_commonjsHelpers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_commonjsHelpers.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var inherits;
|
|
6
|
+
if (typeof Object.create === 'function'){
|
|
7
|
+
inherits = function inherits(ctor, superCtor) {
|
|
8
|
+
// implementation from standard node.js 'util' module
|
|
9
|
+
ctor.super_ = superCtor;
|
|
10
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
11
|
+
constructor: {
|
|
12
|
+
value: ctor,
|
|
13
|
+
enumerable: false,
|
|
14
|
+
writable: true,
|
|
15
|
+
configurable: true
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
} else {
|
|
20
|
+
inherits = function inherits(ctor, superCtor) {
|
|
21
|
+
ctor.super_ = superCtor;
|
|
22
|
+
var TempCtor = function () {};
|
|
23
|
+
TempCtor.prototype = superCtor.prototype;
|
|
24
|
+
ctor.prototype = new TempCtor();
|
|
25
|
+
ctor.prototype.constructor = ctor;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
var inherits$1 = inherits;
|
|
29
|
+
|
|
30
|
+
exports.default = inherits$1;
|
|
31
|
+
//# sourceMappingURL=_polyfill-node._inherits.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_polyfill-node._inherits.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|