@flowio/api-internal-sdk 0.0.159 → 0.0.160

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.
@@ -4156,6 +4156,22 @@ var ShopifyLocalizedVariantsResource = /** @class */ (function (_super) {
4156
4156
  return ShopifyLocalizedVariantsResource;
4157
4157
  }($Resource));
4158
4158
  export { ShopifyLocalizedVariantsResource };
4159
+ var ShopifyPaymentStripeEventsResource = /** @class */ (function (_super) {
4160
+ __extends(ShopifyPaymentStripeEventsResource, _super);
4161
+ function ShopifyPaymentStripeEventsResource() {
4162
+ return _super !== null && _super.apply(this, arguments) || this;
4163
+ }
4164
+ ShopifyPaymentStripeEventsResource.prototype.post = function (params) {
4165
+ return this.client.request({
4166
+ body: params.body,
4167
+ endpoint: '/shopify_payment/callbacks/stripe',
4168
+ headers: params.headers,
4169
+ method: 'POST',
4170
+ });
4171
+ };
4172
+ return ShopifyPaymentStripeEventsResource;
4173
+ }($Resource));
4174
+ export { ShopifyPaymentStripeEventsResource };
4159
4175
  var StripeDisputeEventsResource = /** @class */ (function (_super) {
4160
4176
  __extends(StripeDisputeEventsResource, _super);
4161
4177
  function StripeDisputeEventsResource() {
@@ -4924,328 +4940,6 @@ var ManualReviewRulesResource = /** @class */ (function (_super) {
4924
4940
  return ManualReviewRulesResource;
4925
4941
  }($Resource));
4926
4942
  export { ManualReviewRulesResource };
4927
- var MarketingGatewayChannelsResource = /** @class */ (function (_super) {
4928
- __extends(MarketingGatewayChannelsResource, _super);
4929
- function MarketingGatewayChannelsResource() {
4930
- return _super !== null && _super.apply(this, arguments) || this;
4931
- }
4932
- MarketingGatewayChannelsResource.prototype.get = function (params) {
4933
- return this.client.request({
4934
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/channels"),
4935
- headers: params.headers,
4936
- method: 'GET',
4937
- });
4938
- };
4939
- MarketingGatewayChannelsResource.prototype.postNewChannelRequest = function (params) {
4940
- return this.client.request({
4941
- body: params.body,
4942
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/channels/new_channel_request"),
4943
- headers: params.headers,
4944
- method: 'POST',
4945
- });
4946
- };
4947
- MarketingGatewayChannelsResource.prototype.putConnectByChannelId = function (params) {
4948
- return this.client.request({
4949
- body: params.body,
4950
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/channels/").concat(encodeURIComponent(params.channel_id), "/connect"),
4951
- headers: params.headers,
4952
- method: 'PUT',
4953
- });
4954
- };
4955
- MarketingGatewayChannelsResource.prototype.putDisconnectByChannelId = function (params) {
4956
- return this.client.request({
4957
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/channels/").concat(encodeURIComponent(params.channel_id), "/disconnect"),
4958
- headers: params.headers,
4959
- method: 'PUT',
4960
- });
4961
- };
4962
- MarketingGatewayChannelsResource.prototype.getFeedsAndDownloadsByChannelIdAndFeedAndFormat = function (params) {
4963
- return this.client.request({
4964
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/channels/").concat(encodeURIComponent(params.channel_id), "/feeds/").concat(encodeURIComponent(params.feed), "/downloads/").concat(encodeURIComponent(params.format)),
4965
- headers: params.headers,
4966
- method: 'GET',
4967
- });
4968
- };
4969
- return MarketingGatewayChannelsResource;
4970
- }($Resource));
4971
- export { MarketingGatewayChannelsResource };
4972
- var MarketingGatewayChannelSourceSummariesResource = /** @class */ (function (_super) {
4973
- __extends(MarketingGatewayChannelSourceSummariesResource, _super);
4974
- function MarketingGatewayChannelSourceSummariesResource() {
4975
- return _super !== null && _super.apply(this, arguments) || this;
4976
- }
4977
- MarketingGatewayChannelSourceSummariesResource.prototype.get = function (params) {
4978
- return this.client.request({
4979
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/accounts"),
4980
- headers: params.headers,
4981
- method: 'GET',
4982
- });
4983
- };
4984
- /*Registers a platform/account pair as a channel of interest for the purposes of creating localized feeds*/
4985
- MarketingGatewayChannelSourceSummariesResource.prototype.put = function (params) {
4986
- return this.client.request({
4987
- body: params.body,
4988
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/accounts"),
4989
- headers: params.headers,
4990
- method: 'PUT',
4991
- });
4992
- };
4993
- return MarketingGatewayChannelSourceSummariesResource;
4994
- }($Resource));
4995
- export { MarketingGatewayChannelSourceSummariesResource };
4996
- var MarketingGatewayFacebookBusinessesResource = /** @class */ (function (_super) {
4997
- __extends(MarketingGatewayFacebookBusinessesResource, _super);
4998
- function MarketingGatewayFacebookBusinessesResource() {
4999
- return _super !== null && _super.apply(this, arguments) || this;
5000
- }
5001
- MarketingGatewayFacebookBusinessesResource.prototype.getCatalogs = function (params) {
5002
- return this.client.request({
5003
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/facebook/").concat(encodeURIComponent(params.business_id), "/catalogs"),
5004
- headers: params.headers,
5005
- method: 'GET',
5006
- });
5007
- };
5008
- return MarketingGatewayFacebookBusinessesResource;
5009
- }($Resource));
5010
- export { MarketingGatewayFacebookBusinessesResource };
5011
- var MarketingGatewayFacebookConnectionsResource = /** @class */ (function (_super) {
5012
- __extends(MarketingGatewayFacebookConnectionsResource, _super);
5013
- function MarketingGatewayFacebookConnectionsResource() {
5014
- return _super !== null && _super.apply(this, arguments) || this;
5015
- }
5016
- MarketingGatewayFacebookConnectionsResource.prototype.get = function (params) {
5017
- return this.client.request({
5018
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/facebook"),
5019
- headers: params.headers,
5020
- method: 'GET',
5021
- });
5022
- };
5023
- MarketingGatewayFacebookConnectionsResource.prototype.put = function (params) {
5024
- return this.client.request({
5025
- body: params.body,
5026
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/facebook"),
5027
- headers: params.headers,
5028
- method: 'PUT',
5029
- });
5030
- };
5031
- MarketingGatewayFacebookConnectionsResource.prototype.delete = function (params) {
5032
- return this.client.request({
5033
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/facebook"),
5034
- headers: params.headers,
5035
- method: 'DELETE',
5036
- });
5037
- };
5038
- MarketingGatewayFacebookConnectionsResource.prototype.putCatalog = function (params) {
5039
- return this.client.request({
5040
- body: params.body,
5041
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/facebook/catalog"),
5042
- headers: params.headers,
5043
- method: 'PUT',
5044
- });
5045
- };
5046
- return MarketingGatewayFacebookConnectionsResource;
5047
- }($Resource));
5048
- export { MarketingGatewayFacebookConnectionsResource };
5049
- var MarketingGatewayFacebookConnectionAccessTokenSummariesResource = /** @class */ (function (_super) {
5050
- __extends(MarketingGatewayFacebookConnectionAccessTokenSummariesResource, _super);
5051
- function MarketingGatewayFacebookConnectionAccessTokenSummariesResource() {
5052
- return _super !== null && _super.apply(this, arguments) || this;
5053
- }
5054
- MarketingGatewayFacebookConnectionAccessTokenSummariesResource.prototype.get = function (params) {
5055
- return this.client.request({
5056
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/facebook/access_token_summary"),
5057
- headers: params.headers,
5058
- method: 'GET',
5059
- });
5060
- };
5061
- return MarketingGatewayFacebookConnectionAccessTokenSummariesResource;
5062
- }($Resource));
5063
- export { MarketingGatewayFacebookConnectionAccessTokenSummariesResource };
5064
- var MarketingGatewayFacebookConnectionDeauthsResource = /** @class */ (function (_super) {
5065
- __extends(MarketingGatewayFacebookConnectionDeauthsResource, _super);
5066
- function MarketingGatewayFacebookConnectionDeauthsResource() {
5067
- return _super !== null && _super.apply(this, arguments) || this;
5068
- }
5069
- MarketingGatewayFacebookConnectionDeauthsResource.prototype.get = function (params) {
5070
- if (params === void 0) { params = {}; }
5071
- return this.client.request({
5072
- endpoint: '/marketing/gateway/facebook/deauth',
5073
- headers: params.headers,
5074
- method: 'GET',
5075
- });
5076
- };
5077
- MarketingGatewayFacebookConnectionDeauthsResource.prototype.post = function (params) {
5078
- if (params === void 0) { params = {}; }
5079
- return this.client.request({
5080
- endpoint: '/marketing/gateway/facebook/deauth',
5081
- headers: params.headers,
5082
- method: 'POST',
5083
- query: {
5084
- signed_request: params.signed_request,
5085
- },
5086
- });
5087
- };
5088
- return MarketingGatewayFacebookConnectionDeauthsResource;
5089
- }($Resource));
5090
- export { MarketingGatewayFacebookConnectionDeauthsResource };
5091
- var MarketingGatewayFeedsResource = /** @class */ (function (_super) {
5092
- __extends(MarketingGatewayFeedsResource, _super);
5093
- function MarketingGatewayFeedsResource() {
5094
- return _super !== null && _super.apply(this, arguments) || this;
5095
- }
5096
- MarketingGatewayFeedsResource.prototype.get = function (params) {
5097
- return this.client.request({
5098
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/feeds"),
5099
- headers: params.headers,
5100
- method: 'GET',
5101
- query: {
5102
- channel_id: params.channel_id,
5103
- schema_compatibility: params.schema_compatibility,
5104
- },
5105
- });
5106
- };
5107
- MarketingGatewayFeedsResource.prototype.post = function (params) {
5108
- return this.client.request({
5109
- body: params.body,
5110
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/feeds"),
5111
- headers: params.headers,
5112
- method: 'POST',
5113
- });
5114
- };
5115
- MarketingGatewayFeedsResource.prototype.postBulk = function (params) {
5116
- return this.client.request({
5117
- body: params.body,
5118
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/feeds/bulk"),
5119
- headers: params.headers,
5120
- method: 'POST',
5121
- });
5122
- };
5123
- MarketingGatewayFeedsResource.prototype.postExport = function (params) {
5124
- return this.client.request({
5125
- body: params.body,
5126
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/feeds/export"),
5127
- headers: params.headers,
5128
- method: 'POST',
5129
- });
5130
- };
5131
- MarketingGatewayFeedsResource.prototype.getByFeed = function (params) {
5132
- return this.client.request({
5133
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/feeds/").concat(encodeURIComponent(params.feed)),
5134
- headers: params.headers,
5135
- method: 'GET',
5136
- });
5137
- };
5138
- MarketingGatewayFeedsResource.prototype.deleteByFeed = function (params) {
5139
- return this.client.request({
5140
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/feeds/").concat(encodeURIComponent(params.feed)),
5141
- headers: params.headers,
5142
- method: 'DELETE',
5143
- });
5144
- };
5145
- MarketingGatewayFeedsResource.prototype.getDownloadsByFeedAndFormat = function (params) {
5146
- return this.client.request({
5147
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/feeds/").concat(encodeURIComponent(params.feed), "/downloads/").concat(encodeURIComponent(params.format)),
5148
- headers: params.headers,
5149
- method: 'GET',
5150
- });
5151
- };
5152
- return MarketingGatewayFeedsResource;
5153
- }($Resource));
5154
- export { MarketingGatewayFeedsResource };
5155
- var MarketingGatewayFeedFormsResource = /** @class */ (function (_super) {
5156
- __extends(MarketingGatewayFeedFormsResource, _super);
5157
- function MarketingGatewayFeedFormsResource() {
5158
- return _super !== null && _super.apply(this, arguments) || this;
5159
- }
5160
- /*Provides list of feed forms (for markets) that do not yet exist and therefore can be created.*/
5161
- MarketingGatewayFeedFormsResource.prototype.post = function (params) {
5162
- return this.client.request({
5163
- body: params.body,
5164
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/feed/forms"),
5165
- headers: params.headers,
5166
- method: 'POST',
5167
- });
5168
- };
5169
- return MarketingGatewayFeedFormsResource;
5170
- }($Resource));
5171
- export { MarketingGatewayFeedFormsResource };
5172
- var MarketingGatewayFeedSourcesResource = /** @class */ (function (_super) {
5173
- __extends(MarketingGatewayFeedSourcesResource, _super);
5174
- function MarketingGatewayFeedSourcesResource() {
5175
- return _super !== null && _super.apply(this, arguments) || this;
5176
- }
5177
- /*Provides list of data sources that can be used to create feeds from.*/
5178
- MarketingGatewayFeedSourcesResource.prototype.get = function (params) {
5179
- return this.client.request({
5180
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/feed/sources"),
5181
- headers: params.headers,
5182
- method: 'GET',
5183
- query: {
5184
- channel_id: params.channel_id,
5185
- },
5186
- });
5187
- };
5188
- return MarketingGatewayFeedSourcesResource;
5189
- }($Resource));
5190
- export { MarketingGatewayFeedSourcesResource };
5191
- var MarketingGatewayGoogleConnectionsResource = /** @class */ (function (_super) {
5192
- __extends(MarketingGatewayGoogleConnectionsResource, _super);
5193
- function MarketingGatewayGoogleConnectionsResource() {
5194
- return _super !== null && _super.apply(this, arguments) || this;
5195
- }
5196
- MarketingGatewayGoogleConnectionsResource.prototype.get = function (params) {
5197
- return this.client.request({
5198
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/google"),
5199
- headers: params.headers,
5200
- method: 'GET',
5201
- });
5202
- };
5203
- MarketingGatewayGoogleConnectionsResource.prototype.put = function (params) {
5204
- return this.client.request({
5205
- body: params.body,
5206
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/google"),
5207
- headers: params.headers,
5208
- method: 'PUT',
5209
- });
5210
- };
5211
- MarketingGatewayGoogleConnectionsResource.prototype.delete = function (params) {
5212
- return this.client.request({
5213
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/google"),
5214
- headers: params.headers,
5215
- method: 'DELETE',
5216
- });
5217
- };
5218
- MarketingGatewayGoogleConnectionsResource.prototype.putAccount = function (params) {
5219
- return this.client.request({
5220
- body: params.body,
5221
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/google/account"),
5222
- headers: params.headers,
5223
- method: 'PUT',
5224
- });
5225
- };
5226
- return MarketingGatewayGoogleConnectionsResource;
5227
- }($Resource));
5228
- export { MarketingGatewayGoogleConnectionsResource };
5229
- var MarketingGatewayLocalizedItemsResource = /** @class */ (function (_super) {
5230
- __extends(MarketingGatewayLocalizedItemsResource, _super);
5231
- function MarketingGatewayLocalizedItemsResource() {
5232
- return _super !== null && _super.apply(this, arguments) || this;
5233
- }
5234
- /*Provides random list of localized items given a feed form.*/
5235
- MarketingGatewayLocalizedItemsResource.prototype.postRandom = function (params) {
5236
- return this.client.request({
5237
- body: params.body,
5238
- endpoint: "/".concat(encodeURIComponent(params.organization), "/marketing/gateway/items/random"),
5239
- headers: params.headers,
5240
- method: 'POST',
5241
- query: {
5242
- limit: params.limit,
5243
- },
5244
- });
5245
- };
5246
- return MarketingGatewayLocalizedItemsResource;
5247
- }($Resource));
5248
- export { MarketingGatewayLocalizedItemsResource };
5249
4943
  var MarketsOrdersResource = /** @class */ (function (_super) {
5250
4944
  __extends(MarketsOrdersResource, _super);
5251
4945
  function MarketsOrdersResource() {
@@ -6724,6 +6418,22 @@ var PaymentRedirectsResource = /** @class */ (function (_super) {
6724
6418
  return PaymentRedirectsResource;
6725
6419
  }($Resource));
6726
6420
  export { PaymentRedirectsResource };
6421
+ var PaymentShortUrlsResource = /** @class */ (function (_super) {
6422
+ __extends(PaymentShortUrlsResource, _super);
6423
+ function PaymentShortUrlsResource() {
6424
+ return _super !== null && _super.apply(this, arguments) || this;
6425
+ }
6426
+ /*Redirects to the original long URL corresponding with the given key, if it exists.*/
6427
+ PaymentShortUrlsResource.prototype.get = function (params) {
6428
+ return this.client.request({
6429
+ endpoint: "/payment/short_urls/".concat(encodeURIComponent(params.key)),
6430
+ headers: params.headers,
6431
+ method: 'GET',
6432
+ });
6433
+ };
6434
+ return PaymentShortUrlsResource;
6435
+ }($Resource));
6436
+ export { PaymentShortUrlsResource };
6727
6437
  var PendingBankPaymentsResource = /** @class */ (function (_super) {
6728
6438
  __extends(PendingBankPaymentsResource, _super);
6729
6439
  function PendingBankPaymentsResource() {
@@ -7737,6 +7447,7 @@ var RestrictionRuleEffectsResource = /** @class */ (function (_super) {
7737
7447
  ids: params.ids,
7738
7448
  limit: params.limit,
7739
7449
  offset: params.offset,
7450
+ rule_id: params.rule_id,
7740
7451
  },
7741
7452
  });
7742
7453
  };
@@ -7943,26 +7654,6 @@ var SessionRolloutsResource = /** @class */ (function (_super) {
7943
7654
  return SessionRolloutsResource;
7944
7655
  }($Resource));
7945
7656
  export { SessionRolloutsResource };
7946
- var ShawnRoundtableWorkshopRatesResource = /** @class */ (function (_super) {
7947
- __extends(ShawnRoundtableWorkshopRatesResource, _super);
7948
- function ShawnRoundtableWorkshopRatesResource() {
7949
- return _super !== null && _super.apply(this, arguments) || this;
7950
- }
7951
- ShawnRoundtableWorkshopRatesResource.prototype.getRatesByWorkshopSlotNumber = function (params) {
7952
- return this.client.request({
7953
- endpoint: "/shawn-roundtable-workshop/rates/".concat(encodeURIComponent(params.workshop_slot_number), "/rates"),
7954
- headers: params.headers,
7955
- method: 'GET',
7956
- query: {
7957
- destination_country: params.destination_country,
7958
- origin_country: params.origin_country,
7959
- weight: params.weight,
7960
- },
7961
- });
7962
- };
7963
- return ShawnRoundtableWorkshopRatesResource;
7964
- }($Resource));
7965
- export { ShawnRoundtableWorkshopRatesResource };
7966
7657
  var ShippingLanesResource = /** @class */ (function (_super) {
7967
7658
  __extends(ShippingLanesResource, _super);
7968
7659
  function ShippingLanesResource() {
@@ -9414,6 +9105,7 @@ export function createClient(options) {
9414
9105
  shopifyCarts: new ShopifyCartsResource(options),
9415
9106
  shopifyCartConversions: new ShopifyCartConversionsResource(options),
9416
9107
  shopifyLocalizedVariants: new ShopifyLocalizedVariantsResource(options),
9108
+ shopifyPaymentStripeEvents: new ShopifyPaymentStripeEventsResource(options),
9417
9109
  stripeDisputeEvents: new StripeDisputeEventsResource(options),
9418
9110
  stripeEvents: new StripeEventsResource(options),
9419
9111
  channelTokens: new ChannelTokensResource(options),
@@ -9440,17 +9132,6 @@ export function createClient(options) {
9440
9132
  lostChargebacks: new LostChargebacksResource(options),
9441
9133
  loyaltyPrograms: new LoyaltyProgramsResource(options),
9442
9134
  manualReviewRules: new ManualReviewRulesResource(options),
9443
- marketingGatewayChannels: new MarketingGatewayChannelsResource(options),
9444
- marketingGatewayChannelSourceSummaries: new MarketingGatewayChannelSourceSummariesResource(options),
9445
- marketingGatewayFacebookBusinesses: new MarketingGatewayFacebookBusinessesResource(options),
9446
- marketingGatewayFacebookConnections: new MarketingGatewayFacebookConnectionsResource(options),
9447
- marketingGatewayFacebookConnectionAccessTokenSummaries: new MarketingGatewayFacebookConnectionAccessTokenSummariesResource(options),
9448
- marketingGatewayFacebookConnectionDeauths: new MarketingGatewayFacebookConnectionDeauthsResource(options),
9449
- marketingGatewayFeeds: new MarketingGatewayFeedsResource(options),
9450
- marketingGatewayFeedForms: new MarketingGatewayFeedFormsResource(options),
9451
- marketingGatewayFeedSources: new MarketingGatewayFeedSourcesResource(options),
9452
- marketingGatewayGoogleConnections: new MarketingGatewayGoogleConnectionsResource(options),
9453
- marketingGatewayLocalizedItems: new MarketingGatewayLocalizedItemsResource(options),
9454
9135
  marketsOrders: new MarketsOrdersResource(options),
9455
9136
  marketsOrderSummaries: new MarketsOrderSummariesResource(options),
9456
9137
  merchantApplicationSummaries: new MerchantApplicationSummariesResource(options),
@@ -9492,6 +9173,7 @@ export function createClient(options) {
9492
9173
  paymentMethodDetails: new PaymentMethodDetailsResource(options),
9493
9174
  paymentOrganizationSettings: new PaymentOrganizationSettingsResource(options),
9494
9175
  paymentRedirects: new PaymentRedirectsResource(options),
9176
+ paymentShortUrls: new PaymentShortUrlsResource(options),
9495
9177
  pendingBankPayments: new PendingBankPaymentsResource(options),
9496
9178
  platformFeeChanges: new PlatformFeeChangesResource(options),
9497
9179
  processorAccounts: new ProcessorAccountsResource(options),
@@ -9528,7 +9210,6 @@ export function createClient(options) {
9528
9210
  sessionCountries: new SessionCountriesResource(options),
9529
9211
  sessionOrderData: new SessionOrderDataResource(options),
9530
9212
  sessionRollouts: new SessionRolloutsResource(options),
9531
- shawnRoundtableWorkshopRates: new ShawnRoundtableWorkshopRatesResource(options),
9532
9213
  shippingLanes: new ShippingLanesResource(options),
9533
9214
  shops: new ShopsResource(options),
9534
9215
  shopifyGiftCardBalances: new ShopifyGiftCardBalancesResource(options),