ultracart_rest_api_v2_typescript 3.10.144 → 3.10.145
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/README.md +3 -2
- package/api.ts +19 -1
- package/dist/api.d.ts +18 -1
- package/dist/api.js +23 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.10.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.10.145
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@3.10.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.10.145 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.10.145 | 06/20/2023 | coupon add allowed values for usable_by and new OncePerNewCustomerForItem flag |
|
|
57
58
|
| 3.10.144 | 06/15/2023 | add pickup_dts to order.shipping object |
|
|
58
59
|
| 3.10.143 | 06/14/2023 | dw bi: add request_dts on the execute queries request and report data set objects |
|
|
59
60
|
| 3.10.142 | 06/09/2023 | distribution center pickup times |
|
package/api.ts
CHANGED
|
@@ -9870,7 +9870,25 @@ export interface Coupon {
|
|
|
9870
9870
|
* @type {string}
|
|
9871
9871
|
* @memberof Coupon
|
|
9872
9872
|
*/
|
|
9873
|
-
usable_by?:
|
|
9873
|
+
usable_by?: Coupon.UsableByEnum;
|
|
9874
|
+
}
|
|
9875
|
+
|
|
9876
|
+
/**
|
|
9877
|
+
* @export
|
|
9878
|
+
* @namespace Coupon
|
|
9879
|
+
*/
|
|
9880
|
+
export namespace Coupon {
|
|
9881
|
+
/**
|
|
9882
|
+
* @export
|
|
9883
|
+
* @enum {string}
|
|
9884
|
+
*/
|
|
9885
|
+
export enum UsableByEnum {
|
|
9886
|
+
Anyone = <any> 'Anyone',
|
|
9887
|
+
UniqueCode = <any> 'UniqueCode',
|
|
9888
|
+
OncePerCustomer = <any> 'OncePerCustomer',
|
|
9889
|
+
OncePerNewCustomer = <any> 'OncePerNewCustomer',
|
|
9890
|
+
OncePerNewCustomerForItem = <any> 'OncePerNewCustomerForItem'
|
|
9891
|
+
}
|
|
9874
9892
|
}
|
|
9875
9893
|
|
|
9876
9894
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -9640,7 +9640,24 @@ export interface Coupon {
|
|
|
9640
9640
|
* @type {string}
|
|
9641
9641
|
* @memberof Coupon
|
|
9642
9642
|
*/
|
|
9643
|
-
usable_by?:
|
|
9643
|
+
usable_by?: Coupon.UsableByEnum;
|
|
9644
|
+
}
|
|
9645
|
+
/**
|
|
9646
|
+
* @export
|
|
9647
|
+
* @namespace Coupon
|
|
9648
|
+
*/
|
|
9649
|
+
export declare namespace Coupon {
|
|
9650
|
+
/**
|
|
9651
|
+
* @export
|
|
9652
|
+
* @enum {string}
|
|
9653
|
+
*/
|
|
9654
|
+
enum UsableByEnum {
|
|
9655
|
+
Anyone,
|
|
9656
|
+
UniqueCode,
|
|
9657
|
+
OncePerCustomer,
|
|
9658
|
+
OncePerNewCustomer,
|
|
9659
|
+
OncePerNewCustomerForItem
|
|
9660
|
+
}
|
|
9644
9661
|
}
|
|
9645
9662
|
/**
|
|
9646
9663
|
*
|
package/dist/api.js
CHANGED
|
@@ -28,9 +28,10 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
28
28
|
};
|
|
29
29
|
})();
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
31
|
+
exports.OrderFormat = exports.OrderEdiDocument = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = exports.ItemShippingDestinationRestriction = exports.ItemReview = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.Coupon = exports.ConversationWebsocketMessage = exports.ConversationWebchatQueueStatusUpdateRequest = exports.ConversationWebchatQueueStatusAgent = exports.ConversationSummary = exports.ConversationSentiment = exports.ConversationMessageTransportStatus = exports.ConversationMessage = exports.ConversationEventRRWeb = exports.ConversationEngagementEquationFunction = exports.ConversationEngagement = exports.ConversationAgentProfile = exports.Conversation = exports.CheckoutHandoffRequest = exports.ChannelPartnerOrderItem = exports.ChannelPartnerOrder = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
|
|
32
|
+
exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConversationApi = exports.ConversationApiFactory = exports.ConversationApiFp = exports.ConversationApiFetchParamCreator = exports.CheckoutApi = exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChargebackApi = exports.ChargebackApiFactory = exports.ChargebackApiFp = exports.ChargebackApiFetchParamCreator = exports.ChannelPartnerApi = exports.ChannelPartnerApiFactory = exports.ChannelPartnerApiFp = exports.ChannelPartnerApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.Weight = exports.Webhook = exports.TempMultimedia = exports.ReportWebsocketEvent = exports.ReportPageVisualizationMetric = exports.ReportPageVisualization = exports.ReportFilter = exports.ReportExecuteQueriesRequest = exports.ReportDataSourceSchema = exports.ReportDataSetSchema = exports.ReportDataSetQuery = exports.ReportDataSet = exports.Report = exports.PointOfSaleReader = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = void 0;
|
|
33
|
+
exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.DatawarehouseApi = exports.DatawarehouseApiFactory = exports.DatawarehouseApiFp = exports.DatawarehouseApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = void 0;
|
|
34
|
+
exports.WebhookApi = void 0;
|
|
34
35
|
var url = require("url");
|
|
35
36
|
var portableFetch = require("portable-fetch");
|
|
36
37
|
var BASE_PATH = "https://secure.ultracart.com/rest/v2".replace(/\/+$/, "");
|
|
@@ -662,6 +663,25 @@ var ConversationWebsocketMessage;
|
|
|
662
663
|
TypeEnum[TypeEnum["CheckQueuePosition"] = 'check queue position'] = "CheckQueuePosition";
|
|
663
664
|
})(TypeEnum = ConversationWebsocketMessage.TypeEnum || (ConversationWebsocketMessage.TypeEnum = {}));
|
|
664
665
|
})(ConversationWebsocketMessage = exports.ConversationWebsocketMessage || (exports.ConversationWebsocketMessage = {}));
|
|
666
|
+
/**
|
|
667
|
+
* @export
|
|
668
|
+
* @namespace Coupon
|
|
669
|
+
*/
|
|
670
|
+
var Coupon;
|
|
671
|
+
(function (Coupon) {
|
|
672
|
+
/**
|
|
673
|
+
* @export
|
|
674
|
+
* @enum {string}
|
|
675
|
+
*/
|
|
676
|
+
var UsableByEnum;
|
|
677
|
+
(function (UsableByEnum) {
|
|
678
|
+
UsableByEnum[UsableByEnum["Anyone"] = 'Anyone'] = "Anyone";
|
|
679
|
+
UsableByEnum[UsableByEnum["UniqueCode"] = 'UniqueCode'] = "UniqueCode";
|
|
680
|
+
UsableByEnum[UsableByEnum["OncePerCustomer"] = 'OncePerCustomer'] = "OncePerCustomer";
|
|
681
|
+
UsableByEnum[UsableByEnum["OncePerNewCustomer"] = 'OncePerNewCustomer'] = "OncePerNewCustomer";
|
|
682
|
+
UsableByEnum[UsableByEnum["OncePerNewCustomerForItem"] = 'OncePerNewCustomerForItem'] = "OncePerNewCustomerForItem";
|
|
683
|
+
})(UsableByEnum = Coupon.UsableByEnum || (Coupon.UsableByEnum = {}));
|
|
684
|
+
})(Coupon = exports.Coupon || (exports.Coupon = {}));
|
|
665
685
|
/**
|
|
666
686
|
* @export
|
|
667
687
|
* @namespace Distance
|