@flowio/api-internal-sdk 0.0.138 → 0.0.139
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/cjs/api-internal.js +19 -13
- package/dist/esm/api-internal.js +19 -13
- package/dist/types/api-internal.d.ts +17 -10
- package/package.json +2 -2
package/dist/cjs/api-internal.js
CHANGED
|
@@ -5739,7 +5739,18 @@ var OrderAddressValidationsResource = /** @class */ (function (_super) {
|
|
|
5739
5739
|
function OrderAddressValidationsResource() {
|
|
5740
5740
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
5741
5741
|
}
|
|
5742
|
-
OrderAddressValidationsResource.prototype.
|
|
5742
|
+
OrderAddressValidationsResource.prototype.getOrderValidationAndFailures = function (params) {
|
|
5743
|
+
return this.client.request({
|
|
5744
|
+
endpoint: '/internal/label/order_validation/failures',
|
|
5745
|
+
headers: params.headers,
|
|
5746
|
+
method: 'GET',
|
|
5747
|
+
query: {
|
|
5748
|
+
limit: params.limit,
|
|
5749
|
+
offset: params.offset,
|
|
5750
|
+
},
|
|
5751
|
+
});
|
|
5752
|
+
};
|
|
5753
|
+
OrderAddressValidationsResource.prototype.postAddressValidationByOrganization = function (params) {
|
|
5743
5754
|
return this.client.request({
|
|
5744
5755
|
body: params.body,
|
|
5745
5756
|
endpoint: "/internal/label/".concat(encodeURIComponent(params.organization), "/address_validation"),
|
|
@@ -5747,6 +5758,13 @@ var OrderAddressValidationsResource = /** @class */ (function (_super) {
|
|
|
5747
5758
|
method: 'POST',
|
|
5748
5759
|
});
|
|
5749
5760
|
};
|
|
5761
|
+
OrderAddressValidationsResource.prototype.getOrderValidationByOrganizationAndOrderNumber = function (params) {
|
|
5762
|
+
return this.client.request({
|
|
5763
|
+
endpoint: "/internal/label/".concat(encodeURIComponent(params.organization), "/order_validation/").concat(encodeURIComponent(params.order_number)),
|
|
5764
|
+
headers: params.headers,
|
|
5765
|
+
method: 'GET',
|
|
5766
|
+
});
|
|
5767
|
+
};
|
|
5750
5768
|
return OrderAddressValidationsResource;
|
|
5751
5769
|
}($Resource));
|
|
5752
5770
|
exports.OrderAddressValidationsResource = OrderAddressValidationsResource;
|
|
@@ -7305,18 +7323,6 @@ var ReportRuleDecisionsResource = /** @class */ (function (_super) {
|
|
|
7305
7323
|
function ReportRuleDecisionsResource() {
|
|
7306
7324
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7307
7325
|
}
|
|
7308
|
-
/*Manually trigger the process to automatically restrict all products matching rules*/
|
|
7309
|
-
ReportRuleDecisionsResource.prototype.postAutoRestrict = function (params) {
|
|
7310
|
-
return this.client.request({
|
|
7311
|
-
body: params.body,
|
|
7312
|
-
endpoint: '/internal/restriction/decisions/auto-restrict',
|
|
7313
|
-
headers: params.headers,
|
|
7314
|
-
method: 'POST',
|
|
7315
|
-
query: {
|
|
7316
|
-
screening_status: params.screening_status,
|
|
7317
|
-
},
|
|
7318
|
-
});
|
|
7319
|
-
};
|
|
7320
7326
|
/*Manually re-insert report rule decisions for a list of given organizations. PLEASE NOTE: all data will be cleared before data re-computed from rule_decisions table*/
|
|
7321
7327
|
ReportRuleDecisionsResource.prototype.postReportAndSync = function (params) {
|
|
7322
7328
|
return this.client.request({
|
package/dist/esm/api-internal.js
CHANGED
|
@@ -5703,7 +5703,18 @@ var OrderAddressValidationsResource = /** @class */ (function (_super) {
|
|
|
5703
5703
|
function OrderAddressValidationsResource() {
|
|
5704
5704
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
5705
5705
|
}
|
|
5706
|
-
OrderAddressValidationsResource.prototype.
|
|
5706
|
+
OrderAddressValidationsResource.prototype.getOrderValidationAndFailures = function (params) {
|
|
5707
|
+
return this.client.request({
|
|
5708
|
+
endpoint: '/internal/label/order_validation/failures',
|
|
5709
|
+
headers: params.headers,
|
|
5710
|
+
method: 'GET',
|
|
5711
|
+
query: {
|
|
5712
|
+
limit: params.limit,
|
|
5713
|
+
offset: params.offset,
|
|
5714
|
+
},
|
|
5715
|
+
});
|
|
5716
|
+
};
|
|
5717
|
+
OrderAddressValidationsResource.prototype.postAddressValidationByOrganization = function (params) {
|
|
5707
5718
|
return this.client.request({
|
|
5708
5719
|
body: params.body,
|
|
5709
5720
|
endpoint: "/internal/label/".concat(encodeURIComponent(params.organization), "/address_validation"),
|
|
@@ -5711,6 +5722,13 @@ var OrderAddressValidationsResource = /** @class */ (function (_super) {
|
|
|
5711
5722
|
method: 'POST',
|
|
5712
5723
|
});
|
|
5713
5724
|
};
|
|
5725
|
+
OrderAddressValidationsResource.prototype.getOrderValidationByOrganizationAndOrderNumber = function (params) {
|
|
5726
|
+
return this.client.request({
|
|
5727
|
+
endpoint: "/internal/label/".concat(encodeURIComponent(params.organization), "/order_validation/").concat(encodeURIComponent(params.order_number)),
|
|
5728
|
+
headers: params.headers,
|
|
5729
|
+
method: 'GET',
|
|
5730
|
+
});
|
|
5731
|
+
};
|
|
5714
5732
|
return OrderAddressValidationsResource;
|
|
5715
5733
|
}($Resource));
|
|
5716
5734
|
export { OrderAddressValidationsResource };
|
|
@@ -7269,18 +7287,6 @@ var ReportRuleDecisionsResource = /** @class */ (function (_super) {
|
|
|
7269
7287
|
function ReportRuleDecisionsResource() {
|
|
7270
7288
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7271
7289
|
}
|
|
7272
|
-
/*Manually trigger the process to automatically restrict all products matching rules*/
|
|
7273
|
-
ReportRuleDecisionsResource.prototype.postAutoRestrict = function (params) {
|
|
7274
|
-
return this.client.request({
|
|
7275
|
-
body: params.body,
|
|
7276
|
-
endpoint: '/internal/restriction/decisions/auto-restrict',
|
|
7277
|
-
headers: params.headers,
|
|
7278
|
-
method: 'POST',
|
|
7279
|
-
query: {
|
|
7280
|
-
screening_status: params.screening_status,
|
|
7281
|
-
},
|
|
7282
|
-
});
|
|
7283
|
-
};
|
|
7284
7290
|
/*Manually re-insert report rule decisions for a list of given organizations. PLEASE NOTE: all data will be cleared before data re-computed from rule_decisions table*/
|
|
7285
7291
|
ReportRuleDecisionsResource.prototype.postReportAndSync = function (params) {
|
|
7286
7292
|
return this.client.request({
|
|
@@ -2693,11 +2693,21 @@ export interface OrderActionabilitiesGetAvailableParameters {
|
|
|
2693
2693
|
organization: string;
|
|
2694
2694
|
number: string;
|
|
2695
2695
|
}
|
|
2696
|
-
export interface
|
|
2696
|
+
export interface OrderAddressValidationsGetOrderValidationAndFailuresParameters {
|
|
2697
|
+
headers?: $HttpHeaders;
|
|
2698
|
+
limit?: number;
|
|
2699
|
+
offset?: number;
|
|
2700
|
+
}
|
|
2701
|
+
export interface OrderAddressValidationsPostAddressValidationByOrganizationParameters {
|
|
2697
2702
|
body: io.flow.internal.v0.unions.ConsoleLabelValidationForm;
|
|
2698
2703
|
headers?: $HttpHeaders;
|
|
2699
2704
|
organization: string;
|
|
2700
2705
|
}
|
|
2706
|
+
export interface OrderAddressValidationsGetOrderValidationByOrganizationAndOrderNumberParameters {
|
|
2707
|
+
headers?: $HttpHeaders;
|
|
2708
|
+
organization: string;
|
|
2709
|
+
order_number: string;
|
|
2710
|
+
}
|
|
2701
2711
|
export interface OrderCancellationsGetParameters {
|
|
2702
2712
|
headers?: $HttpHeaders;
|
|
2703
2713
|
id?: string[];
|
|
@@ -3461,11 +3471,6 @@ export interface ReportsGetByIdParameters {
|
|
|
3461
3471
|
headers?: $HttpHeaders;
|
|
3462
3472
|
id: string;
|
|
3463
3473
|
}
|
|
3464
|
-
export interface ReportRuleDecisionsPostAutoRestrictParameters {
|
|
3465
|
-
body: io.flow.internal.v0.enums.AutoRestrictRule[];
|
|
3466
|
-
headers?: $HttpHeaders;
|
|
3467
|
-
screening_status?: string;
|
|
3468
|
-
}
|
|
3469
3474
|
export interface ReportRuleDecisionsPostReportAndSyncParameters {
|
|
3470
3475
|
body: string[];
|
|
3471
3476
|
headers?: $HttpHeaders;
|
|
@@ -4738,7 +4743,9 @@ export declare type OptinPromptsGetByIdResponse = $HttpOk<io.flow.internal.v0.mo
|
|
|
4738
4743
|
export declare type OptinPromptCopiesPostResponse = $HttpCreated<io.flow.internal.v0.models.OptinPromptCopy[]> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4739
4744
|
export declare type OrderActionabilitiesPostResponse = $HttpOk<io.flow.internal.v0.models.OrderActionability> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4740
4745
|
export declare type OrderActionabilitiesGetAvailableResponse = $HttpOk<io.flow.internal.v0.models.OrderActionability> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
|
|
4741
|
-
export declare type
|
|
4746
|
+
export declare type OrderAddressValidationsGetOrderValidationAndFailuresResponse = $HttpOk<io.flow.internal.v0.models.OrderValidationFailureSummary[]> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4747
|
+
export declare type OrderAddressValidationsPostAddressValidationByOrganizationResponse = $HttpOk<undefined> | $HttpCreated<undefined> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4748
|
+
export declare type OrderAddressValidationsGetOrderValidationByOrganizationAndOrderNumberResponse = $HttpOk<io.flow.internal.v0.models.OrderValidation> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4742
4749
|
export declare type OrderCancellationsGetResponse = $HttpOk<io.flow.internal.v0.models.OrderCancellation[]> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4743
4750
|
export declare type OrderCancellationsPutOrganizationAndOrderByOrganizationIdAndNumberResponse = $HttpOk<io.flow.internal.v0.models.OrderCancellation> | $HttpCreated<io.flow.internal.v0.models.OrderCancellation> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4744
4751
|
export declare type OrderCancellationsGetByIdResponse = $HttpOk<io.flow.internal.v0.models.OrderCancellation> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
|
|
@@ -4865,7 +4872,6 @@ export declare type ReboundConfigurationsPutResponse = $HttpOk<io.flow.internal.
|
|
|
4865
4872
|
export declare type ReboundConfigurationsDeleteResponse = $HttpNoContent<undefined> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
|
|
4866
4873
|
export declare type ReportsPostResponse = $HttpOk<io.flow.internal.v0.models.Report> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4867
4874
|
export declare type ReportsGetByIdResponse = $HttpOk<io.flow.internal.v0.models.Report> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4868
|
-
export declare type ReportRuleDecisionsPostAutoRestrictResponse = $HttpOk<undefined> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4869
4875
|
export declare type ReportRuleDecisionsPostReportAndSyncResponse = $HttpOk<undefined> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4870
4876
|
export declare type ReportSummaryGetResponse = $HttpOk<io.flow.internal.v0.models.ReportSummary> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
|
|
4871
4877
|
export declare type RestrictionCategoriesGetResponse = $HttpOk<io.flow.internal.v0.models.RestrictionCategory[]> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
|
|
@@ -5809,7 +5815,9 @@ export declare class OrderActionabilitiesResource extends $Resource {
|
|
|
5809
5815
|
getAvailable(params: OrderActionabilitiesGetAvailableParameters): Promise<OrderActionabilitiesGetAvailableResponse>;
|
|
5810
5816
|
}
|
|
5811
5817
|
export declare class OrderAddressValidationsResource extends $Resource {
|
|
5812
|
-
|
|
5818
|
+
getOrderValidationAndFailures(params: OrderAddressValidationsGetOrderValidationAndFailuresParameters): Promise<OrderAddressValidationsGetOrderValidationAndFailuresResponse>;
|
|
5819
|
+
postAddressValidationByOrganization(params: OrderAddressValidationsPostAddressValidationByOrganizationParameters): Promise<OrderAddressValidationsPostAddressValidationByOrganizationResponse>;
|
|
5820
|
+
getOrderValidationByOrganizationAndOrderNumber(params: OrderAddressValidationsGetOrderValidationByOrganizationAndOrderNumberParameters): Promise<OrderAddressValidationsGetOrderValidationByOrganizationAndOrderNumberResponse>;
|
|
5813
5821
|
}
|
|
5814
5822
|
export declare class OrderCancellationsResource extends $Resource {
|
|
5815
5823
|
get(params: OrderCancellationsGetParameters): Promise<OrderCancellationsGetResponse>;
|
|
@@ -6026,7 +6034,6 @@ export declare class ReportsResource extends $Resource {
|
|
|
6026
6034
|
getById(params: ReportsGetByIdParameters): Promise<ReportsGetByIdResponse>;
|
|
6027
6035
|
}
|
|
6028
6036
|
export declare class ReportRuleDecisionsResource extends $Resource {
|
|
6029
|
-
postAutoRestrict(params: ReportRuleDecisionsPostAutoRestrictParameters): Promise<ReportRuleDecisionsPostAutoRestrictResponse>;
|
|
6030
6037
|
postReportAndSync(params: ReportRuleDecisionsPostReportAndSyncParameters): Promise<ReportRuleDecisionsPostReportAndSyncResponse>;
|
|
6031
6038
|
}
|
|
6032
6039
|
export declare class ReportSummaryResource extends $Resource {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-internal-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.139",
|
|
4
4
|
"description": "Global TypeScript typings for Flow Commerce API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"generate": "apibuilder update"
|
|
27
27
|
},
|
|
28
28
|
"sideEffects": false,
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "2bd18d938f840ec2fa147fa4651350a1bb75b33a"
|
|
30
30
|
}
|