@flowio/api-internal-sdk 0.0.156 → 0.0.158

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.
@@ -165,6 +165,60 @@ var AddressConfigurationSettingsResource = /** @class */ (function (_super) {
165
165
  return AddressConfigurationSettingsResource;
166
166
  }($Resource));
167
167
  export { AddressConfigurationSettingsResource };
168
+ var AftershipWebhooksResource = /** @class */ (function (_super) {
169
+ __extends(AftershipWebhooksResource, _super);
170
+ function AftershipWebhooksResource() {
171
+ return _super !== null && _super.apply(this, arguments) || this;
172
+ }
173
+ AftershipWebhooksResource.prototype.post = function (params) {
174
+ return this.client.request({
175
+ body: params.body,
176
+ endpoint: '/aftership/webhooks',
177
+ headers: params.headers,
178
+ method: 'POST',
179
+ });
180
+ };
181
+ return AftershipWebhooksResource;
182
+ }($Resource));
183
+ export { AftershipWebhooksResource };
184
+ var AldoItemsResource = /** @class */ (function (_super) {
185
+ __extends(AldoItemsResource, _super);
186
+ function AldoItemsResource() {
187
+ return _super !== null && _super.apply(this, arguments) || this;
188
+ }
189
+ AldoItemsResource.prototype.post = function (params) {
190
+ return this.client.request({
191
+ body: params.body,
192
+ endpoint: '/aldo/items',
193
+ headers: params.headers,
194
+ method: 'POST',
195
+ });
196
+ };
197
+ AldoItemsResource.prototype.getById = function (params) {
198
+ return this.client.request({
199
+ endpoint: "/aldo/items/".concat(encodeURIComponent(params.id)),
200
+ headers: params.headers,
201
+ method: 'GET',
202
+ });
203
+ };
204
+ AldoItemsResource.prototype.putById = function (params) {
205
+ return this.client.request({
206
+ body: params.body,
207
+ endpoint: "/aldo/items/".concat(encodeURIComponent(params.id)),
208
+ headers: params.headers,
209
+ method: 'PUT',
210
+ });
211
+ };
212
+ AldoItemsResource.prototype.deleteById = function (params) {
213
+ return this.client.request({
214
+ endpoint: "/aldo/items/".concat(encodeURIComponent(params.id)),
215
+ headers: params.headers,
216
+ method: 'DELETE',
217
+ });
218
+ };
219
+ return AldoItemsResource;
220
+ }($Resource));
221
+ export { AldoItemsResource };
168
222
  var AlertFailureSummariesResource = /** @class */ (function (_super) {
169
223
  __extends(AlertFailureSummariesResource, _super);
170
224
  function AlertFailureSummariesResource() {
@@ -1578,57 +1632,6 @@ var CliLogEntriesResource = /** @class */ (function (_super) {
1578
1632
  return CliLogEntriesResource;
1579
1633
  }($Resource));
1580
1634
  export { CliLogEntriesResource };
1581
- var ColmItemsResource = /** @class */ (function (_super) {
1582
- __extends(ColmItemsResource, _super);
1583
- function ColmItemsResource() {
1584
- return _super !== null && _super.apply(this, arguments) || this;
1585
- }
1586
- ColmItemsResource.prototype.get = function (params) {
1587
- return this.client.request({
1588
- endpoint: '/colm/items',
1589
- headers: params.headers,
1590
- method: 'GET',
1591
- query: {
1592
- id: params.id,
1593
- limit: params.limit,
1594
- offset: params.offset,
1595
- sort: params.sort,
1596
- },
1597
- });
1598
- };
1599
- ColmItemsResource.prototype.post = function (params) {
1600
- return this.client.request({
1601
- body: params.body,
1602
- endpoint: '/colm/items',
1603
- headers: params.headers,
1604
- method: 'POST',
1605
- });
1606
- };
1607
- ColmItemsResource.prototype.getById = function (params) {
1608
- return this.client.request({
1609
- endpoint: "/colm/items/".concat(encodeURIComponent(params.id)),
1610
- headers: params.headers,
1611
- method: 'GET',
1612
- });
1613
- };
1614
- ColmItemsResource.prototype.putById = function (params) {
1615
- return this.client.request({
1616
- body: params.body,
1617
- endpoint: "/colm/items/".concat(encodeURIComponent(params.id)),
1618
- headers: params.headers,
1619
- method: 'PUT',
1620
- });
1621
- };
1622
- ColmItemsResource.prototype.deleteById = function (params) {
1623
- return this.client.request({
1624
- endpoint: "/colm/items/".concat(encodeURIComponent(params.id)),
1625
- headers: params.headers,
1626
- method: 'DELETE',
1627
- });
1628
- };
1629
- return ColmItemsResource;
1630
- }($Resource));
1631
- export { ColmItemsResource };
1632
1635
  var CommercialInvoiceComparisonsResource = /** @class */ (function (_super) {
1633
1636
  __extends(CommercialInvoiceComparisonsResource, _super);
1634
1637
  function CommercialInvoiceComparisonsResource() {
@@ -2436,6 +2439,30 @@ var FinancialReportingStatementsResource = /** @class */ (function (_super) {
2436
2439
  return FinancialReportingStatementsResource;
2437
2440
  }($Resource));
2438
2441
  export { FinancialReportingStatementsResource };
2442
+ var FlexeWebhooksResource = /** @class */ (function (_super) {
2443
+ __extends(FlexeWebhooksResource, _super);
2444
+ function FlexeWebhooksResource() {
2445
+ return _super !== null && _super.apply(this, arguments) || this;
2446
+ }
2447
+ FlexeWebhooksResource.prototype.postReceipt = function (params) {
2448
+ return this.client.request({
2449
+ body: params.body,
2450
+ endpoint: '/flexe/webhook/receipt',
2451
+ headers: params.headers,
2452
+ method: 'POST',
2453
+ });
2454
+ };
2455
+ FlexeWebhooksResource.prototype.postShipment = function (params) {
2456
+ return this.client.request({
2457
+ body: params.body,
2458
+ endpoint: '/flexe/webhook/shipment',
2459
+ headers: params.headers,
2460
+ method: 'POST',
2461
+ });
2462
+ };
2463
+ return FlexeWebhooksResource;
2464
+ }($Resource));
2465
+ export { FlexeWebhooksResource };
2439
2466
  var FlowAccountsResource = /** @class */ (function (_super) {
2440
2467
  __extends(FlowAccountsResource, _super);
2441
2468
  function FlowAccountsResource() {
@@ -3659,38 +3686,6 @@ var WebhookEventsResource = /** @class */ (function (_super) {
3659
3686
  return WebhookEventsResource;
3660
3687
  }($Resource));
3661
3688
  export { WebhookEventsResource };
3662
- var ReceiptNotificationsResource = /** @class */ (function (_super) {
3663
- __extends(ReceiptNotificationsResource, _super);
3664
- function ReceiptNotificationsResource() {
3665
- return _super !== null && _super.apply(this, arguments) || this;
3666
- }
3667
- ReceiptNotificationsResource.prototype.post = function (params) {
3668
- return this.client.request({
3669
- body: params.body,
3670
- endpoint: '/flexe/webhook/receipt',
3671
- headers: params.headers,
3672
- method: 'POST',
3673
- });
3674
- };
3675
- return ReceiptNotificationsResource;
3676
- }($Resource));
3677
- export { ReceiptNotificationsResource };
3678
- var ShipmentNotificationsResource = /** @class */ (function (_super) {
3679
- __extends(ShipmentNotificationsResource, _super);
3680
- function ShipmentNotificationsResource() {
3681
- return _super !== null && _super.apply(this, arguments) || this;
3682
- }
3683
- ShipmentNotificationsResource.prototype.post = function (params) {
3684
- return this.client.request({
3685
- body: params.body,
3686
- endpoint: '/flexe/webhook/shipment',
3687
- headers: params.headers,
3688
- method: 'POST',
3689
- });
3690
- };
3691
- return ShipmentNotificationsResource;
3692
- }($Resource));
3693
- export { ShipmentNotificationsResource };
3694
3689
  var UltimateBeneficiaryOwnersResource = /** @class */ (function (_super) {
3695
3690
  __extends(UltimateBeneficiaryOwnersResource, _super);
3696
3691
  function UltimateBeneficiaryOwnersResource() {
@@ -4172,37 +4167,6 @@ var ChannelTokensResource = /** @class */ (function (_super) {
4172
4167
  return ChannelTokensResource;
4173
4168
  }($Resource));
4174
4169
  export { ChannelTokensResource };
4175
- var LabelTrackingSummariesResource = /** @class */ (function (_super) {
4176
- __extends(LabelTrackingSummariesResource, _super);
4177
- function LabelTrackingSummariesResource() {
4178
- return _super !== null && _super.apply(this, arguments) || this;
4179
- }
4180
- LabelTrackingSummariesResource.prototype.getByLabelId = function (params) {
4181
- return this.client.request({
4182
- endpoint: "/internal/label_tracking_summary/".concat(encodeURIComponent(params.label_id)),
4183
- headers: params.headers,
4184
- method: 'GET',
4185
- });
4186
- };
4187
- return LabelTrackingSummariesResource;
4188
- }($Resource));
4189
- export { LabelTrackingSummariesResource };
4190
- var TrackingsResource = /** @class */ (function (_super) {
4191
- __extends(TrackingsResource, _super);
4192
- function TrackingsResource() {
4193
- return _super !== null && _super.apply(this, arguments) || this;
4194
- }
4195
- TrackingsResource.prototype.post = function (params) {
4196
- return this.client.request({
4197
- body: params.body,
4198
- endpoint: '/internal/tracking/resync/request',
4199
- headers: params.headers,
4200
- method: 'POST',
4201
- });
4202
- };
4203
- return TrackingsResource;
4204
- }($Resource));
4205
- export { TrackingsResource };
4206
4170
  var ItemClassificationsResource = /** @class */ (function (_super) {
4207
4171
  __extends(ItemClassificationsResource, _super);
4208
4172
  function ItemClassificationsResource() {
@@ -6980,6 +6944,46 @@ var ProductReviewHistoriesResource = /** @class */ (function (_super) {
6980
6944
  return ProductReviewHistoriesResource;
6981
6945
  }($Resource));
6982
6946
  export { ProductReviewHistoriesResource };
6947
+ var PspRoutingDistributionRevisionsResource = /** @class */ (function (_super) {
6948
+ __extends(PspRoutingDistributionRevisionsResource, _super);
6949
+ function PspRoutingDistributionRevisionsResource() {
6950
+ return _super !== null && _super.apply(this, arguments) || this;
6951
+ }
6952
+ /*Get the current revision of psp_routing_distributions*/
6953
+ PspRoutingDistributionRevisionsResource.prototype.get = function (params) {
6954
+ return this.client.request({
6955
+ endpoint: '/internal/psp_routing_distribution_revisions',
6956
+ headers: params.headers,
6957
+ method: 'GET',
6958
+ query: {
6959
+ id: params.id,
6960
+ limit: params.limit,
6961
+ offset: params.offset,
6962
+ sort: params.sort,
6963
+ },
6964
+ });
6965
+ };
6966
+ /*Update the current psp_routing_distributions by creating a new revision*/
6967
+ PspRoutingDistributionRevisionsResource.prototype.post = function (params) {
6968
+ return this.client.request({
6969
+ body: params.body,
6970
+ endpoint: '/internal/psp_routing_distribution_revisions',
6971
+ headers: params.headers,
6972
+ method: 'POST',
6973
+ });
6974
+ };
6975
+ /*Get the current revision of psp_routing_distributions*/
6976
+ PspRoutingDistributionRevisionsResource.prototype.getCurrent = function (params) {
6977
+ if (params === void 0) { params = {}; }
6978
+ return this.client.request({
6979
+ endpoint: '/internal/psp_routing_distribution_revisions/current',
6980
+ headers: params.headers,
6981
+ method: 'GET',
6982
+ });
6983
+ };
6984
+ return PspRoutingDistributionRevisionsResource;
6985
+ }($Resource));
6986
+ export { PspRoutingDistributionRevisionsResource };
6983
6987
  var PublicHubsResource = /** @class */ (function (_super) {
6984
6988
  __extends(PublicHubsResource, _super);
6985
6989
  function PublicHubsResource() {
@@ -8036,14 +8040,6 @@ var ShopifyMarketsQueuedRecordsResource = /** @class */ (function (_super) {
8036
8040
  },
8037
8041
  });
8038
8042
  };
8039
- /*Enable reviewers to ignore the queued record*/
8040
- ShopifyMarketsQueuedRecordsResource.prototype.putIgnoreById = function (params) {
8041
- return this.client.request({
8042
- endpoint: "/internal/shopify/markets/queued/records/".concat(encodeURIComponent(params.id), "/ignore"),
8043
- headers: params.headers,
8044
- method: 'PUT',
8045
- });
8046
- };
8047
8043
  /*Enable reviewers to re-queue the queued record for current time and do not wait until the next attempt at*/
8048
8044
  ShopifyMarketsQueuedRecordsResource.prototype.putRequeueAndNowById = function (params) {
8049
8045
  return this.client.request({
@@ -8794,21 +8790,51 @@ var TrackingDebugLabelsResource = /** @class */ (function (_super) {
8794
8790
  return TrackingDebugLabelsResource;
8795
8791
  }($Resource));
8796
8792
  export { TrackingDebugLabelsResource };
8797
- var TrackingSubscriptionsResource = /** @class */ (function (_super) {
8798
- __extends(TrackingSubscriptionsResource, _super);
8799
- function TrackingSubscriptionsResource() {
8793
+ var TrackingResyncsResource = /** @class */ (function (_super) {
8794
+ __extends(TrackingResyncsResource, _super);
8795
+ function TrackingResyncsResource() {
8800
8796
  return _super !== null && _super.apply(this, arguments) || this;
8801
8797
  }
8802
- TrackingSubscriptionsResource.prototype.getExternalReferenceSourceAndExternalReferenceKeyByExternalReferenceSourceAndExternalReferenceKey = function (params) {
8798
+ TrackingResyncsResource.prototype.post = function (params) {
8803
8799
  return this.client.request({
8804
- endpoint: "/internal/tracking/subscription/external_reference_source/".concat(encodeURIComponent(params.external_reference_source), "/external_reference_key/").concat(encodeURIComponent(params.external_reference_key)),
8800
+ body: params.body,
8801
+ endpoint: '/internal/tracking/resync/request',
8802
+ headers: params.headers,
8803
+ method: 'POST',
8804
+ });
8805
+ };
8806
+ return TrackingResyncsResource;
8807
+ }($Resource));
8808
+ export { TrackingResyncsResource };
8809
+ var TrackingWebhooksResource = /** @class */ (function (_super) {
8810
+ __extends(TrackingWebhooksResource, _super);
8811
+ function TrackingWebhooksResource() {
8812
+ return _super !== null && _super.apply(this, arguments) || this;
8813
+ }
8814
+ TrackingWebhooksResource.prototype.get = function (params) {
8815
+ return this.client.request({
8816
+ endpoint: "/tracking/".concat(encodeURIComponent(params.carrier_id), "/webhook"),
8805
8817
  headers: params.headers,
8806
8818
  method: 'GET',
8819
+ query: {
8820
+ account_identifier: params.account_identifier,
8821
+ },
8822
+ });
8823
+ };
8824
+ TrackingWebhooksResource.prototype.post = function (params) {
8825
+ return this.client.request({
8826
+ body: params.body,
8827
+ endpoint: "/tracking/".concat(encodeURIComponent(params.carrier_id), "/webhook"),
8828
+ headers: params.headers,
8829
+ method: 'POST',
8830
+ query: {
8831
+ account_identifier: params.account_identifier,
8832
+ },
8807
8833
  });
8808
8834
  };
8809
- return TrackingSubscriptionsResource;
8835
+ return TrackingWebhooksResource;
8810
8836
  }($Resource));
8811
- export { TrackingSubscriptionsResource };
8837
+ export { TrackingWebhooksResource };
8812
8838
  var TransactionsResource = /** @class */ (function (_super) {
8813
8839
  __extends(TransactionsResource, _super);
8814
8840
  function TransactionsResource() {
@@ -9057,13 +9083,6 @@ var V1CheckoutsResource = /** @class */ (function (_super) {
9057
9083
  method: 'POST',
9058
9084
  });
9059
9085
  };
9060
- V1CheckoutsResource.prototype.getV1ByV2CheckoutId = function (params) {
9061
- return this.client.request({
9062
- endpoint: "/checkouts/v1/".concat(encodeURIComponent(params.v2_checkout_id)),
9063
- headers: params.headers,
9064
- method: 'GET',
9065
- });
9066
- };
9067
9086
  V1CheckoutsResource.prototype.getById = function (params) {
9068
9087
  return this.client.request({
9069
9088
  endpoint: "/checkouts/".concat(encodeURIComponent(params.id)),
@@ -9137,6 +9156,8 @@ export function createClient(options) {
9137
9156
  return {
9138
9157
  accountPaymentHolds: new AccountPaymentHoldsResource(options),
9139
9158
  addressConfigurationSettings: new AddressConfigurationSettingsResource(options),
9159
+ aftershipWebhooks: new AftershipWebhooksResource(options),
9160
+ aldoItems: new AldoItemsResource(options),
9140
9161
  alertFailureSummaries: new AlertFailureSummariesResource(options),
9141
9162
  alertRequeueSummaries: new AlertRequeueSummariesResource(options),
9142
9163
  allOrganizationsMemberships: new AllOrganizationsMembershipsResource(options),
@@ -9182,7 +9203,6 @@ export function createClient(options) {
9182
9203
  classificationStatistics: new ClassificationStatisticsResource(options),
9183
9204
  classificationTaxonomy: new ClassificationTaxonomyResource(options),
9184
9205
  cliLogEntries: new CliLogEntriesResource(options),
9185
- colmItems: new ColmItemsResource(options),
9186
9206
  commercialInvoiceComparisons: new CommercialInvoiceComparisonsResource(options),
9187
9207
  commercialInvoiceSummaries: new CommercialInvoiceSummariesResource(options),
9188
9208
  compliances: new CompliancesResource(options),
@@ -9211,6 +9231,7 @@ export function createClient(options) {
9211
9231
  financeBankPayments: new FinanceBankPaymentsResource(options),
9212
9232
  financialMerchantCategories: new FinancialMerchantCategoriesResource(options),
9213
9233
  financialReportingStatements: new FinancialReportingStatementsResource(options),
9234
+ flexeWebhooks: new FlexeWebhooksResource(options),
9214
9235
  flowAccounts: new FlowAccountsResource(options),
9215
9236
  flowBillingStatements: new FlowBillingStatementsResource(options),
9216
9237
  flowChannelOrganizations: new FlowChannelOrganizationsResource(options),
@@ -9248,8 +9269,6 @@ export function createClient(options) {
9248
9269
  orders: new OrdersResource(options),
9249
9270
  paypalDisputeEvents: new PaypalDisputeEventsResource(options),
9250
9271
  webhookEvents: new WebhookEventsResource(options),
9251
- receiptNotifications: new ReceiptNotificationsResource(options),
9252
- shipmentNotifications: new ShipmentNotificationsResource(options),
9253
9272
  ultimateBeneficiaryOwners: new UltimateBeneficiaryOwnersResource(options),
9254
9273
  orderManagementEvents: new OrderManagementEventsResource(options),
9255
9274
  onboardingStates: new OnboardingStatesResource(options),
@@ -9270,8 +9289,6 @@ export function createClient(options) {
9270
9289
  stripeDisputeEvents: new StripeDisputeEventsResource(options),
9271
9290
  stripeEvents: new StripeEventsResource(options),
9272
9291
  channelTokens: new ChannelTokensResource(options),
9273
- labelTrackingSummaries: new LabelTrackingSummariesResource(options),
9274
- trackings: new TrackingsResource(options),
9275
9292
  itemClassifications: new ItemClassificationsResource(options),
9276
9293
  itemClassificationSummaries: new ItemClassificationSummariesResource(options),
9277
9294
  itemHarmonizations: new ItemHarmonizationsResource(options),
@@ -9353,6 +9370,7 @@ export function createClient(options) {
9353
9370
  processorMerchants: new ProcessorMerchantsResource(options),
9354
9371
  productClassifications: new ProductClassificationsResource(options),
9355
9372
  productReviewHistories: new ProductReviewHistoriesResource(options),
9373
+ pspRoutingDistributionRevisions: new PspRoutingDistributionRevisionsResource(options),
9356
9374
  publicHubs: new PublicHubsResource(options),
9357
9375
  rateAndRuleLookups: new RateAndRuleLookupsResource(options),
9358
9376
  rateLevels: new RateLevelsResource(options),
@@ -9412,7 +9430,8 @@ export function createClient(options) {
9412
9430
  techOnboardingDescriptions: new TechOnboardingDescriptionsResource(options),
9413
9431
  tests: new TestsResource(options),
9414
9432
  trackingDebugLabels: new TrackingDebugLabelsResource(options),
9415
- trackingSubscriptions: new TrackingSubscriptionsResource(options),
9433
+ trackingResyncs: new TrackingResyncsResource(options),
9434
+ trackingWebhooks: new TrackingWebhooksResource(options),
9416
9435
  transactions: new TransactionsResource(options),
9417
9436
  transactionAdjustments: new TransactionAdjustmentsResource(options),
9418
9437
  tribes: new TribesResource(options),