@flowio/api-internal-sdk 0.0.126 → 0.0.127

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.
@@ -7254,6 +7254,20 @@ var RestrictionItemsResource = /** @class */ (function (_super) {
7254
7254
  },
7255
7255
  });
7256
7256
  };
7257
+ /*Returns a list of item restriction decisions for an organization*/
7258
+ RestrictionItemsResource.prototype.post = function (params) {
7259
+ return this.client.request({
7260
+ body: params.body,
7261
+ endpoint: "/jailhouse/restriction/".concat(encodeURIComponent(params.organization), "/items"),
7262
+ headers: params.headers,
7263
+ method: 'POST',
7264
+ query: {
7265
+ limit: params.limit,
7266
+ offset: params.offset,
7267
+ sort: params.sort,
7268
+ },
7269
+ });
7270
+ };
7257
7271
  /*Returns a restriction product item by id*/
7258
7272
  RestrictionItemsResource.prototype.getById = function (params) {
7259
7273
  return this.client.request({
@@ -7368,6 +7382,20 @@ var RestrictionProductsResource = /** @class */ (function (_super) {
7368
7382
  },
7369
7383
  });
7370
7384
  };
7385
+ /*Returns a list of products and their restriction information for an organization*/
7386
+ RestrictionProductsResource.prototype.post = function (params) {
7387
+ return this.client.request({
7388
+ body: params.body,
7389
+ endpoint: "/jailhouse/restriction/".concat(encodeURIComponent(params.organization), "/products"),
7390
+ headers: params.headers,
7391
+ method: 'POST',
7392
+ query: {
7393
+ limit: params.limit,
7394
+ offset: params.offset,
7395
+ sort: params.sort,
7396
+ },
7397
+ });
7398
+ };
7371
7399
  /*Bulk Inserts/Updates of restriction decisions*/
7372
7400
  RestrictionProductsResource.prototype.postDecisions = function (params) {
7373
7401
  return this.client.request({
@@ -7218,6 +7218,20 @@ var RestrictionItemsResource = /** @class */ (function (_super) {
7218
7218
  },
7219
7219
  });
7220
7220
  };
7221
+ /*Returns a list of item restriction decisions for an organization*/
7222
+ RestrictionItemsResource.prototype.post = function (params) {
7223
+ return this.client.request({
7224
+ body: params.body,
7225
+ endpoint: "/jailhouse/restriction/".concat(encodeURIComponent(params.organization), "/items"),
7226
+ headers: params.headers,
7227
+ method: 'POST',
7228
+ query: {
7229
+ limit: params.limit,
7230
+ offset: params.offset,
7231
+ sort: params.sort,
7232
+ },
7233
+ });
7234
+ };
7221
7235
  /*Returns a restriction product item by id*/
7222
7236
  RestrictionItemsResource.prototype.getById = function (params) {
7223
7237
  return this.client.request({
@@ -7332,6 +7346,20 @@ var RestrictionProductsResource = /** @class */ (function (_super) {
7332
7346
  },
7333
7347
  });
7334
7348
  };
7349
+ /*Returns a list of products and their restriction information for an organization*/
7350
+ RestrictionProductsResource.prototype.post = function (params) {
7351
+ return this.client.request({
7352
+ body: params.body,
7353
+ endpoint: "/jailhouse/restriction/".concat(encodeURIComponent(params.organization), "/products"),
7354
+ headers: params.headers,
7355
+ method: 'POST',
7356
+ query: {
7357
+ limit: params.limit,
7358
+ offset: params.offset,
7359
+ sort: params.sort,
7360
+ },
7361
+ });
7362
+ };
7335
7363
  /*Bulk Inserts/Updates of restriction decisions*/
7336
7364
  RestrictionProductsResource.prototype.postDecisions = function (params) {
7337
7365
  return this.client.request({
@@ -3441,6 +3441,14 @@ export interface RestrictionItemsGetParameters {
3441
3441
  offset?: number;
3442
3442
  sort?: string;
3443
3443
  }
3444
+ export interface RestrictionItemsPostParameters {
3445
+ body: io.flow.internal.v0.models.RestrictionItemRequestForm;
3446
+ headers?: $HttpHeaders;
3447
+ organization: string;
3448
+ limit?: number;
3449
+ offset?: number;
3450
+ sort?: string;
3451
+ }
3444
3452
  export interface RestrictionItemsGetByIdParameters {
3445
3453
  headers?: $HttpHeaders;
3446
3454
  organization: string;
@@ -3496,6 +3504,14 @@ export interface RestrictionProductsGetParameters {
3496
3504
  offset?: number;
3497
3505
  sort?: string;
3498
3506
  }
3507
+ export interface RestrictionProductsPostParameters {
3508
+ body: io.flow.internal.v0.models.RestrictionProductRequestForm;
3509
+ headers?: $HttpHeaders;
3510
+ organization: string;
3511
+ limit?: number;
3512
+ offset?: number;
3513
+ sort?: string;
3514
+ }
3499
3515
  export interface RestrictionProductsPostDecisionsParameters {
3500
3516
  body: io.flow.internal.v0.models.RestrictionProductDecisionForm;
3501
3517
  headers?: $HttpHeaders;
@@ -4670,6 +4686,7 @@ export declare type RestrictionFiltersGetResponse = $HttpOk<io.flow.internal.v0.
4670
4686
  export declare type RestrictionFiltersGetCatalogResponse = $HttpOk<io.flow.internal.v0.models.RestrictionFilter> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
4671
4687
  export declare type RestrictionFiltersGetPendingReviewsResponse = $HttpOk<io.flow.internal.v0.models.RestrictionFilter> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
4672
4688
  export declare type RestrictionItemsGetResponse = $HttpOk<io.flow.internal.v0.models.RestrictionItem[]> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
4689
+ export declare type RestrictionItemsPostResponse = $HttpOk<io.flow.internal.v0.models.RestrictionItem[]> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
4673
4690
  export declare type RestrictionItemsGetByIdResponse = $HttpOk<io.flow.internal.v0.models.RestrictionItem> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
4674
4691
  export declare type RestrictionOrganizationsGetRestrictionAndStatusByOrganizationResponse = $HttpOk<io.flow.internal.v0.models.RestrictionOrganization> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
4675
4692
  export declare type RestrictionOrganizationsPostRestrictionAndStatusByOrganizationResponse = $HttpCreated<io.flow.internal.v0.models.RestrictionOrganization> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
@@ -4677,6 +4694,7 @@ export declare type RestrictionOrganizationsPutRestrictionAndStatusByOrganizatio
4677
4694
  export declare type RestrictionOrganizationsGetSearchAndRestrictionAndOrganizationsResponse = $HttpOk<io.flow.common.v0.models.OrganizationSummary[]> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
4678
4695
  export declare type RestrictionOrganizationDecisionSummariesGetResponse = $HttpOk<io.flow.internal.v0.models.RestrictionOrganizationDecisionSummary[]> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
4679
4696
  export declare type RestrictionProductsGetResponse = $HttpOk<io.flow.internal.v0.models.RestrictionProduct[]> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
4697
+ export declare type RestrictionProductsPostResponse = $HttpOk<io.flow.internal.v0.models.RestrictionProduct[]> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
4680
4698
  export declare type RestrictionProductsPostDecisionsResponse = $HttpOk<undefined> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
4681
4699
  export declare type RestrictionProductsGetByIdResponse = $HttpOk<io.flow.internal.v0.models.RestrictionProduct> | $HttpUnauthorized<undefined> | $HttpNotFound<undefined>;
4682
4700
  export declare type RestrictionRulesGetResponse = $HttpOk<io.flow.internal.v0.models.RestrictionRule[]> | $HttpUnauthorized<undefined> | $HttpUnprocessableEntity<io.flow.error.v0.models.GenericError>;
@@ -5789,6 +5807,7 @@ export declare class RestrictionFiltersResource extends $Resource {
5789
5807
  }
5790
5808
  export declare class RestrictionItemsResource extends $Resource {
5791
5809
  get(params: RestrictionItemsGetParameters): Promise<RestrictionItemsGetResponse>;
5810
+ post(params: RestrictionItemsPostParameters): Promise<RestrictionItemsPostResponse>;
5792
5811
  getById(params: RestrictionItemsGetByIdParameters): Promise<RestrictionItemsGetByIdResponse>;
5793
5812
  }
5794
5813
  export declare class RestrictionOrganizationsResource extends $Resource {
@@ -5802,6 +5821,7 @@ export declare class RestrictionOrganizationDecisionSummariesResource extends $R
5802
5821
  }
5803
5822
  export declare class RestrictionProductsResource extends $Resource {
5804
5823
  get(params: RestrictionProductsGetParameters): Promise<RestrictionProductsGetResponse>;
5824
+ post(params: RestrictionProductsPostParameters): Promise<RestrictionProductsPostResponse>;
5805
5825
  postDecisions(params: RestrictionProductsPostDecisionsParameters): Promise<RestrictionProductsPostDecisionsResponse>;
5806
5826
  getById(params: RestrictionProductsGetByIdParameters): Promise<RestrictionProductsGetByIdResponse>;
5807
5827
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-sdk",
3
- "version": "0.0.126",
3
+ "version": "0.0.127",
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": "2eaa54ec47aea1e42dad859077feb3852172583c"
29
+ "gitHead": "bae206460687524c23b75d19a96a544fb102eb2d"
30
30
  }