ultracart_rest_api_v2_typescript 4.1.196 → 4.1.198
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 +4 -2
- package/dist/apis/SfvbApi.d.ts +4 -4
- package/dist/apis/SfvbApi.js +5 -3
- package/package.json +1 -1
- package/src/apis/SfvbApi.ts +7 -6
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.198
|
|
3
3
|
|
|
4
4
|
Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
|
|
5
5
|
|
|
6
6
|
Installation
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
npm install ultracart_rest_api_v2_typescript@4.1.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.198 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -84,6 +84,8 @@ Not every change is committed to every SDK.
|
|
|
84
84
|
|
|
85
85
|
| Version | Date | Comments |
|
|
86
86
|
| --: | :-: | --- |
|
|
87
|
+
| 4.1.198 | 10/08/2026 | sfvb internal testing |
|
|
88
|
+
| 4.1.197 | 10/08/2026 | sfvb internal testing |
|
|
87
89
|
| 4.1.196 | 10/08/2026 | sfvb internal testing |
|
|
88
90
|
| 4.1.195 | 10/07/2026 | sfvb internal testing |
|
|
89
91
|
| 4.1.194 | 10/07/2026 | sfvb internal testing |
|
package/dist/apis/SfvbApi.d.ts
CHANGED
|
@@ -2000,12 +2000,12 @@ export interface SfvbApiInterface {
|
|
|
2000
2000
|
* @throws {RequiredError}
|
|
2001
2001
|
* @memberof SfvbApiInterface
|
|
2002
2002
|
*/
|
|
2003
|
-
insertSfvbApprovalRaw(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2003
|
+
insertSfvbApprovalRaw(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbApproval>>;
|
|
2004
2004
|
/**
|
|
2005
2005
|
* Asks the person who signed in the CLI to approve one gated action on one exact target. Name the storefront with the storefront_oid query parameter. The target is checked the way the action will check it, so nobody is asked to approve a call that would fail. Show the person approval_url and user_code, poll GET approvals/{approval_id} every interval_seconds, and once it is approved repeat the gated call with the approval_id in the Approval-Id header. Asking again for the same thing returns the pending request (200) rather than a new one (201). A request lapses after 10 minutes. Requires a token that resolves to a user, so use the device authorization flow.
|
|
2006
2006
|
* Request a human approval
|
|
2007
2007
|
*/
|
|
2008
|
-
insertSfvbApproval(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2008
|
+
insertSfvbApproval(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbApproval>;
|
|
2009
2009
|
/**
|
|
2010
2010
|
* title and url_part are required. The post is a draft unless visibility says otherwise, and anything but a draft needs sfvb_publish. The body and excerpt are refused with sfvb.unsafe_html if they could run script, and a url_part another post uses is refused with a 409 and sfvb.blog_post_exists. Assign the post to a page with pages/blog_posts/add, or let the page\'s selectors choose it.
|
|
2011
2011
|
* @summary Create a blog post
|
|
@@ -3958,12 +3958,12 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
|
|
|
3958
3958
|
* Asks the person who signed in the CLI to approve one gated action on one exact target. Name the storefront with the storefront_oid query parameter. The target is checked the way the action will check it, so nobody is asked to approve a call that would fail. Show the person approval_url and user_code, poll GET approvals/{approval_id} every interval_seconds, and once it is approved repeat the gated call with the approval_id in the Approval-Id header. Asking again for the same thing returns the pending request (200) rather than a new one (201). A request lapses after 10 minutes. Requires a token that resolves to a user, so use the device authorization flow.
|
|
3959
3959
|
* Request a human approval
|
|
3960
3960
|
*/
|
|
3961
|
-
insertSfvbApprovalRaw(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
3961
|
+
insertSfvbApprovalRaw(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbApproval>>;
|
|
3962
3962
|
/**
|
|
3963
3963
|
* Asks the person who signed in the CLI to approve one gated action on one exact target. Name the storefront with the storefront_oid query parameter. The target is checked the way the action will check it, so nobody is asked to approve a call that would fail. Show the person approval_url and user_code, poll GET approvals/{approval_id} every interval_seconds, and once it is approved repeat the gated call with the approval_id in the Approval-Id header. Asking again for the same thing returns the pending request (200) rather than a new one (201). A request lapses after 10 minutes. Requires a token that resolves to a user, so use the device authorization flow.
|
|
3964
3964
|
* Request a human approval
|
|
3965
3965
|
*/
|
|
3966
|
-
insertSfvbApproval(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
3966
|
+
insertSfvbApproval(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbApproval>;
|
|
3967
3967
|
/**
|
|
3968
3968
|
* title and url_part are required. The post is a draft unless visibility says otherwise, and anything but a draft needs sfvb_publish. The body and excerpt are refused with sfvb.unsafe_html if they could run script, and a url_part another post uses is refused with a 409 and sfvb.blog_post_exists. Assign the post to a page with pages/blog_posts/add, or let the page\'s selectors choose it.
|
|
3969
3969
|
* Create a blog post
|
package/dist/apis/SfvbApi.js
CHANGED
|
@@ -5296,7 +5296,7 @@ var SfvbApi = /** @class */ (function (_super) {
|
|
|
5296
5296
|
}, initOverrides)];
|
|
5297
5297
|
case 3:
|
|
5298
5298
|
response = _c.sent();
|
|
5299
|
-
return [2 /*return*/, new runtime.
|
|
5299
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SfvbApprovalFromJSON)(jsonValue); })];
|
|
5300
5300
|
}
|
|
5301
5301
|
});
|
|
5302
5302
|
});
|
|
@@ -5307,12 +5307,14 @@ var SfvbApi = /** @class */ (function (_super) {
|
|
|
5307
5307
|
*/
|
|
5308
5308
|
SfvbApi.prototype.insertSfvbApproval = function (requestParameters, initOverrides) {
|
|
5309
5309
|
return __awaiter(this, void 0, void 0, function () {
|
|
5310
|
+
var response;
|
|
5310
5311
|
return __generator(this, function (_a) {
|
|
5311
5312
|
switch (_a.label) {
|
|
5312
5313
|
case 0: return [4 /*yield*/, this.insertSfvbApprovalRaw(requestParameters, initOverrides)];
|
|
5313
5314
|
case 1:
|
|
5314
|
-
_a.sent();
|
|
5315
|
-
return [
|
|
5315
|
+
response = _a.sent();
|
|
5316
|
+
return [4 /*yield*/, response.value()];
|
|
5317
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
5316
5318
|
}
|
|
5317
5319
|
});
|
|
5318
5320
|
});
|
package/package.json
CHANGED
package/src/apis/SfvbApi.ts
CHANGED
|
@@ -2702,13 +2702,13 @@ export interface SfvbApiInterface {
|
|
|
2702
2702
|
* @throws {RequiredError}
|
|
2703
2703
|
* @memberof SfvbApiInterface
|
|
2704
2704
|
*/
|
|
2705
|
-
insertSfvbApprovalRaw(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2705
|
+
insertSfvbApprovalRaw(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbApproval>>;
|
|
2706
2706
|
|
|
2707
2707
|
/**
|
|
2708
2708
|
* Asks the person who signed in the CLI to approve one gated action on one exact target. Name the storefront with the storefront_oid query parameter. The target is checked the way the action will check it, so nobody is asked to approve a call that would fail. Show the person approval_url and user_code, poll GET approvals/{approval_id} every interval_seconds, and once it is approved repeat the gated call with the approval_id in the Approval-Id header. Asking again for the same thing returns the pending request (200) rather than a new one (201). A request lapses after 10 minutes. Requires a token that resolves to a user, so use the device authorization flow.
|
|
2709
2709
|
* Request a human approval
|
|
2710
2710
|
*/
|
|
2711
|
-
insertSfvbApproval(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2711
|
+
insertSfvbApproval(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbApproval>;
|
|
2712
2712
|
|
|
2713
2713
|
/**
|
|
2714
2714
|
* title and url_part are required. The post is a draft unless visibility says otherwise, and anything but a draft needs sfvb_publish. The body and excerpt are refused with sfvb.unsafe_html if they could run script, and a url_part another post uses is refused with a 409 and sfvb.blog_post_exists. Assign the post to a page with pages/blog_posts/add, or let the page\'s selectors choose it.
|
|
@@ -7872,7 +7872,7 @@ export class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface {
|
|
|
7872
7872
|
* Asks the person who signed in the CLI to approve one gated action on one exact target. Name the storefront with the storefront_oid query parameter. The target is checked the way the action will check it, so nobody is asked to approve a call that would fail. Show the person approval_url and user_code, poll GET approvals/{approval_id} every interval_seconds, and once it is approved repeat the gated call with the approval_id in the Approval-Id header. Asking again for the same thing returns the pending request (200) rather than a new one (201). A request lapses after 10 minutes. Requires a token that resolves to a user, so use the device authorization flow.
|
|
7873
7873
|
* Request a human approval
|
|
7874
7874
|
*/
|
|
7875
|
-
async insertSfvbApprovalRaw(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
7875
|
+
async insertSfvbApprovalRaw(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbApproval>> {
|
|
7876
7876
|
if (requestParameters.approvalRequest === null || requestParameters.approvalRequest === undefined) {
|
|
7877
7877
|
throw new runtime.RequiredError('approvalRequest','Required parameter requestParameters.approvalRequest was null or undefined when calling insertSfvbApproval.');
|
|
7878
7878
|
}
|
|
@@ -7904,15 +7904,16 @@ export class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface {
|
|
|
7904
7904
|
body: SfvbApprovalCreateRequestToJSON(requestParameters.approvalRequest),
|
|
7905
7905
|
}, initOverrides);
|
|
7906
7906
|
|
|
7907
|
-
return new runtime.
|
|
7907
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SfvbApprovalFromJSON(jsonValue));
|
|
7908
7908
|
}
|
|
7909
7909
|
|
|
7910
7910
|
/**
|
|
7911
7911
|
* Asks the person who signed in the CLI to approve one gated action on one exact target. Name the storefront with the storefront_oid query parameter. The target is checked the way the action will check it, so nobody is asked to approve a call that would fail. Show the person approval_url and user_code, poll GET approvals/{approval_id} every interval_seconds, and once it is approved repeat the gated call with the approval_id in the Approval-Id header. Asking again for the same thing returns the pending request (200) rather than a new one (201). A request lapses after 10 minutes. Requires a token that resolves to a user, so use the device authorization flow.
|
|
7912
7912
|
* Request a human approval
|
|
7913
7913
|
*/
|
|
7914
|
-
async insertSfvbApproval(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
7915
|
-
await this.insertSfvbApprovalRaw(requestParameters, initOverrides);
|
|
7914
|
+
async insertSfvbApproval(requestParameters: InsertSfvbApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbApproval> {
|
|
7915
|
+
const response = await this.insertSfvbApprovalRaw(requestParameters, initOverrides);
|
|
7916
|
+
return await response.value();
|
|
7916
7917
|
}
|
|
7917
7918
|
|
|
7918
7919
|
/**
|