@greensecurity/javascript-sdk 0.43.1-beta.104 → 0.43.1-beta.107
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/FUNCTIONS.md +10 -10
- package/REACT_QUERY.md +6 -10
- package/README.md +54 -52
- package/dist/commonjs/__tests__/vendorfields.test.d.ts +2 -0
- package/dist/commonjs/__tests__/vendorfields.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/vendorfields.test.js +43 -0
- package/dist/commonjs/__tests__/vendorfields.test.js.map +1 -0
- package/dist/commonjs/__tests__/zones.test.js +12 -9
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/usersGetCurrentUser.d.ts +4 -2
- package/dist/commonjs/funcs/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersGetCurrentUser.js +19 -4
- package/dist/commonjs/funcs/usersGetCurrentUser.js.map +1 -1
- package/dist/commonjs/funcs/vendorFieldsCreateVendorField.d.ts +23 -0
- package/dist/commonjs/funcs/vendorFieldsCreateVendorField.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorFieldsCreateVendorField.js +122 -0
- package/dist/commonjs/funcs/vendorFieldsCreateVendorField.js.map +1 -0
- package/dist/commonjs/funcs/vendorFieldsUpdateVendorField.d.ts +21 -0
- package/dist/commonjs/funcs/vendorFieldsUpdateVendorField.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorFieldsUpdateVendorField.js +126 -0
- package/dist/commonjs/funcs/vendorFieldsUpdateVendorField.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/productvariant.d.ts +10 -0
- package/dist/commonjs/models/components/productvariant.d.ts.map +1 -1
- package/dist/commonjs/models/components/productvariant.js +10 -1
- package/dist/commonjs/models/components/productvariant.js.map +1 -1
- package/dist/commonjs/models/operations/createvendorfield.d.ts +39 -0
- package/dist/commonjs/models/operations/createvendorfield.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createvendorfield.js +67 -0
- package/dist/commonjs/models/operations/createvendorfield.js.map +1 -0
- package/dist/commonjs/models/operations/getcurrentuser.d.ts +16 -0
- package/dist/commonjs/models/operations/getcurrentuser.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getcurrentuser.js +50 -0
- package/dist/commonjs/models/operations/getcurrentuser.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorfield.d.ts +49 -0
- package/dist/commonjs/models/operations/updatevendorfield.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatevendorfield.js +84 -0
- package/dist/commonjs/models/operations/updatevendorfield.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/usersGetCurrentUser.core.d.ts +6 -3
- package/dist/commonjs/react-query/usersGetCurrentUser.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/usersGetCurrentUser.core.js +12 -7
- package/dist/commonjs/react-query/usersGetCurrentUser.core.js.map +1 -1
- package/dist/commonjs/react-query/usersGetCurrentUser.d.ts +17 -6
- package/dist/commonjs/react-query/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/commonjs/react-query/usersGetCurrentUser.js +22 -8
- package/dist/commonjs/react-query/usersGetCurrentUser.js.map +1 -1
- package/dist/commonjs/react-query/vendorFieldsCreateVendorField.d.ts +34 -0
- package/dist/commonjs/react-query/vendorFieldsCreateVendorField.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorFieldsCreateVendorField.js +56 -0
- package/dist/commonjs/react-query/vendorFieldsCreateVendorField.js.map +1 -0
- package/dist/commonjs/react-query/vendorFieldsUpdateVendorField.d.ts +32 -0
- package/dist/commonjs/react-query/vendorFieldsUpdateVendorField.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorFieldsUpdateVendorField.js +54 -0
- package/dist/commonjs/react-query/vendorFieldsUpdateVendorField.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/users.d.ts +3 -2
- package/dist/commonjs/sdk/users.d.ts.map +1 -1
- package/dist/commonjs/sdk/users.js +4 -3
- package/dist/commonjs/sdk/users.js.map +1 -1
- package/dist/commonjs/sdk/vendorfields.d.ts +27 -0
- package/dist/commonjs/sdk/vendorfields.d.ts.map +1 -0
- package/dist/commonjs/sdk/vendorfields.js +40 -0
- package/dist/commonjs/sdk/vendorfields.js.map +1 -0
- package/dist/esm/__tests__/vendorfields.test.d.ts +2 -0
- package/dist/esm/__tests__/vendorfields.test.d.ts.map +1 -0
- package/dist/esm/__tests__/vendorfields.test.js +41 -0
- package/dist/esm/__tests__/vendorfields.test.js.map +1 -0
- package/dist/esm/__tests__/zones.test.js +12 -9
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/usersGetCurrentUser.d.ts +4 -2
- package/dist/esm/funcs/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/esm/funcs/usersGetCurrentUser.js +19 -4
- package/dist/esm/funcs/usersGetCurrentUser.js.map +1 -1
- package/dist/esm/funcs/vendorFieldsCreateVendorField.d.ts +23 -0
- package/dist/esm/funcs/vendorFieldsCreateVendorField.d.ts.map +1 -0
- package/dist/esm/funcs/vendorFieldsCreateVendorField.js +86 -0
- package/dist/esm/funcs/vendorFieldsCreateVendorField.js.map +1 -0
- package/dist/esm/funcs/vendorFieldsUpdateVendorField.d.ts +21 -0
- package/dist/esm/funcs/vendorFieldsUpdateVendorField.d.ts.map +1 -0
- package/dist/esm/funcs/vendorFieldsUpdateVendorField.js +90 -0
- package/dist/esm/funcs/vendorFieldsUpdateVendorField.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/productvariant.d.ts +10 -0
- package/dist/esm/models/components/productvariant.d.ts.map +1 -1
- package/dist/esm/models/components/productvariant.js +9 -0
- package/dist/esm/models/components/productvariant.js.map +1 -1
- package/dist/esm/models/operations/createvendorfield.d.ts +39 -0
- package/dist/esm/models/operations/createvendorfield.d.ts.map +1 -0
- package/dist/esm/models/operations/createvendorfield.js +29 -0
- package/dist/esm/models/operations/createvendorfield.js.map +1 -0
- package/dist/esm/models/operations/getcurrentuser.d.ts +16 -0
- package/dist/esm/models/operations/getcurrentuser.d.ts.map +1 -0
- package/dist/esm/models/operations/getcurrentuser.js +13 -0
- package/dist/esm/models/operations/getcurrentuser.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/updatevendorfield.d.ts +49 -0
- package/dist/esm/models/operations/updatevendorfield.d.ts.map +1 -0
- package/dist/esm/models/operations/updatevendorfield.js +45 -0
- package/dist/esm/models/operations/updatevendorfield.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/usersGetCurrentUser.core.d.ts +6 -3
- package/dist/esm/react-query/usersGetCurrentUser.core.d.ts.map +1 -1
- package/dist/esm/react-query/usersGetCurrentUser.core.js +12 -7
- package/dist/esm/react-query/usersGetCurrentUser.core.js.map +1 -1
- package/dist/esm/react-query/usersGetCurrentUser.d.ts +17 -6
- package/dist/esm/react-query/usersGetCurrentUser.d.ts.map +1 -1
- package/dist/esm/react-query/usersGetCurrentUser.js +21 -8
- package/dist/esm/react-query/usersGetCurrentUser.js.map +1 -1
- package/dist/esm/react-query/vendorFieldsCreateVendorField.d.ts +34 -0
- package/dist/esm/react-query/vendorFieldsCreateVendorField.d.ts.map +1 -0
- package/dist/esm/react-query/vendorFieldsCreateVendorField.js +51 -0
- package/dist/esm/react-query/vendorFieldsCreateVendorField.js.map +1 -0
- package/dist/esm/react-query/vendorFieldsUpdateVendorField.d.ts +32 -0
- package/dist/esm/react-query/vendorFieldsUpdateVendorField.d.ts.map +1 -0
- package/dist/esm/react-query/vendorFieldsUpdateVendorField.js +49 -0
- package/dist/esm/react-query/vendorFieldsUpdateVendorField.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/users.d.ts +3 -2
- package/dist/esm/sdk/users.d.ts.map +1 -1
- package/dist/esm/sdk/users.js +4 -3
- package/dist/esm/sdk/users.js.map +1 -1
- package/dist/esm/sdk/vendorfields.d.ts +27 -0
- package/dist/esm/sdk/vendorfields.d.ts.map +1 -0
- package/dist/esm/sdk/vendorfields.js +36 -0
- package/dist/esm/sdk/vendorfields.js.map +1 -0
- package/examples/{vendorsCreateVendorRegistration.example.ts → vendorFieldsCreateVendorField.example.ts} +9 -9
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendorfields.test.ts +47 -0
- package/src/__tests__/zones.test.ts +12 -9
- package/src/funcs/usersGetCurrentUser.ts +25 -1
- package/src/funcs/vendorFieldsCreateVendorField.ts +174 -0
- package/src/funcs/vendorFieldsUpdateVendorField.ts +177 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/productvariant.ts +18 -0
- package/src/models/operations/createvendorfield.ts +87 -0
- package/src/models/operations/getcurrentuser.ts +35 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/updatevendorfield.ts +122 -0
- package/src/react-query/index.ts +2 -0
- package/src/react-query/usersGetCurrentUser.core.ts +15 -3
- package/src/react-query/usersGetCurrentUser.ts +35 -4
- package/src/react-query/vendorFieldsCreateVendorField.ts +120 -0
- package/src/react-query/vendorFieldsUpdateVendorField.ts +118 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/users.ts +4 -1
- package/src/sdk/vendorfields.ts +53 -0
|
@@ -6,9 +6,10 @@ export declare class Users extends ClientSDK {
|
|
|
6
6
|
* Get current user
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Returns a user object for the user represented by the authorization token
|
|
9
|
+
* Returns a user object for the user represented by the authorization token.
|
|
10
|
+
* For Company Manager users, the `company` object supports expand. Available values: company.vendor_fields, company.location, company.vendor_type_restrictions.
|
|
10
11
|
*/
|
|
11
|
-
getCurrentUser(options?: RequestOptions): Promise<components.User>;
|
|
12
|
+
getCurrentUser(request: operations.GetCurrentUserRequest, options?: RequestOptions): Promise<components.User>;
|
|
12
13
|
/**
|
|
13
14
|
* Get user by id
|
|
14
15
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/sdk/users.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/sdk/users.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG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AAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;CAOtD"}
|
|
@@ -21,10 +21,11 @@ class Users extends sdks_js_1.ClientSDK {
|
|
|
21
21
|
* Get current user
|
|
22
22
|
*
|
|
23
23
|
* @remarks
|
|
24
|
-
* Returns a user object for the user represented by the authorization token
|
|
24
|
+
* Returns a user object for the user represented by the authorization token.
|
|
25
|
+
* For Company Manager users, the `company` object supports expand. Available values: company.vendor_fields, company.location, company.vendor_type_restrictions.
|
|
25
26
|
*/
|
|
26
|
-
async getCurrentUser(options) {
|
|
27
|
-
return (0, fp_js_1.unwrapAsync)((0, usersGetCurrentUser_js_1.usersGetCurrentUser)(this, options));
|
|
27
|
+
async getCurrentUser(request, options) {
|
|
28
|
+
return (0, fp_js_1.unwrapAsync)((0, usersGetCurrentUser_js_1.usersGetCurrentUser)(this, request, options));
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* Get user by id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/sdk/users.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,4EAAsE;AACtE,4EAAsE;AACtE,sEAAgE;AAChE,kEAA4D;AAC5D,gEAA0D;AAC1D,wFAAkF;AAClF,gFAA0E;AAC1E,wEAAkE;AAClE,0EAAoE;AACpE,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,KAAM,SAAQ,mBAAS;IAClC
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/sdk/users.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,4EAAsE;AACtE,4EAAsE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C;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAAmD,EACnD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA7MD,sBA6MC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as operations from "../models/operations/index.js";
|
|
3
|
+
export declare class VendorFields extends ClientSDK {
|
|
4
|
+
/**
|
|
5
|
+
* Create vendor field
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Create a new vendor field for a company. The name can only be set on creation;
|
|
9
|
+
* once created, only the show_to_vendor flag can be updated via PATCH.
|
|
10
|
+
* Requires access to the company (company manager, admin, or API user with company scope).
|
|
11
|
+
*
|
|
12
|
+
* For API users: source_user_id is required. The API user acts on behalf of that user
|
|
13
|
+
* (e.g. a company manager). The app must be activated for that user via MarketplaceAppActivation.
|
|
14
|
+
*/
|
|
15
|
+
createVendorField(request: operations.CreateVendorFieldRequestBody, options?: RequestOptions): Promise<operations.CreateVendorFieldResponseBody>;
|
|
16
|
+
/**
|
|
17
|
+
* Update vendor field
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Update a vendor field. Only the show_to_vendor flag can be changed;
|
|
21
|
+
* the name cannot be modified after creation.
|
|
22
|
+
*
|
|
23
|
+
* For API users: source_user_id is required. The API user acts on behalf of that user.
|
|
24
|
+
*/
|
|
25
|
+
updateVendorField(request: operations.UpdateVendorFieldRequest, options?: RequestOptions): Promise<operations.UpdateVendorFieldResponseBody>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=vendorfields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorfields.d.ts","sourceRoot":"","sources":["../../../src/sdk/vendorfields.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,YAAa,SAAQ,SAAS;IACzC;;;;;;;;;;OAUG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;;;OAQG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAOrD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.VendorFields = void 0;
|
|
7
|
+
const vendorFieldsCreateVendorField_js_1 = require("../funcs/vendorFieldsCreateVendorField.js");
|
|
8
|
+
const vendorFieldsUpdateVendorField_js_1 = require("../funcs/vendorFieldsUpdateVendorField.js");
|
|
9
|
+
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
|
+
const fp_js_1 = require("../types/fp.js");
|
|
11
|
+
class VendorFields extends sdks_js_1.ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* Create vendor field
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Create a new vendor field for a company. The name can only be set on creation;
|
|
17
|
+
* once created, only the show_to_vendor flag can be updated via PATCH.
|
|
18
|
+
* Requires access to the company (company manager, admin, or API user with company scope).
|
|
19
|
+
*
|
|
20
|
+
* For API users: source_user_id is required. The API user acts on behalf of that user
|
|
21
|
+
* (e.g. a company manager). The app must be activated for that user via MarketplaceAppActivation.
|
|
22
|
+
*/
|
|
23
|
+
async createVendorField(request, options) {
|
|
24
|
+
return (0, fp_js_1.unwrapAsync)((0, vendorFieldsCreateVendorField_js_1.vendorFieldsCreateVendorField)(this, request, options));
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Update vendor field
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Update a vendor field. Only the show_to_vendor flag can be changed;
|
|
31
|
+
* the name cannot be modified after creation.
|
|
32
|
+
*
|
|
33
|
+
* For API users: source_user_id is required. The API user acts on behalf of that user.
|
|
34
|
+
*/
|
|
35
|
+
async updateVendorField(request, options) {
|
|
36
|
+
return (0, fp_js_1.unwrapAsync)((0, vendorFieldsUpdateVendorField_js_1.vendorFieldsUpdateVendorField)(this, request, options));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.VendorFields = VendorFields;
|
|
40
|
+
//# sourceMappingURL=vendorfields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorfields.js","sourceRoot":"","sources":["../../../src/sdk/vendorfields.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gGAA0F;AAC1F,gGAA0F;AAC1F,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,YAAa,SAAQ,mBAAS;IACzC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gEAA6B,EAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gEAA6B,EAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA1CD,oCA0CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorfields.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/vendorfields.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { expect, test } from "vitest";
|
|
5
|
+
import { GreenSecurity } from "../index.js";
|
|
6
|
+
import { createTestHTTPClient } from "./testclient.js";
|
|
7
|
+
test("Vendor Fields Create Vendor Field", async () => {
|
|
8
|
+
const testHttpClient = createTestHTTPClient("createVendorField");
|
|
9
|
+
const greenSecurity = new GreenSecurity({
|
|
10
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
11
|
+
httpClient: testHttpClient,
|
|
12
|
+
security: {
|
|
13
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
const result = await greenSecurity.vendorFields.createVendorField({
|
|
17
|
+
companyId: 814595,
|
|
18
|
+
name: "<value>",
|
|
19
|
+
});
|
|
20
|
+
expect(result).toBeDefined();
|
|
21
|
+
expect(result).toEqual({});
|
|
22
|
+
});
|
|
23
|
+
test("Vendor Fields Update Vendor Field", async () => {
|
|
24
|
+
const testHttpClient = createTestHTTPClient("updateVendorField");
|
|
25
|
+
const greenSecurity = new GreenSecurity({
|
|
26
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
27
|
+
httpClient: testHttpClient,
|
|
28
|
+
security: {
|
|
29
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
const result = await greenSecurity.vendorFields.updateVendorField({
|
|
33
|
+
id: 426182,
|
|
34
|
+
requestBody: {
|
|
35
|
+
showToVendor: true,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
expect(result).toBeDefined();
|
|
39
|
+
expect(result).toEqual({});
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=vendorfields.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorfields.test.js","sourceRoot":"","sources":["../../../src/__tests__/vendorfields.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,IAAI,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;IACnD,MAAM,cAAc,GAAG,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;IAEjE,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,OAAO;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,YAAY,CAAC,iBAAiB,CAAC;QAChE,SAAS,EAAE,MAAM;QACjB,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IACH,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;IACnD,MAAM,cAAc,GAAG,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;IAEjE,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,OAAO;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,YAAY,CAAC,iBAAiB,CAAC;QAChE,EAAE,EAAE,MAAM;QACV,WAAW,EAAE;YACX,YAAY,EAAE,IAAI;SACnB;KACF,CAAC,CAAC;IACH,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC"}
|
|
@@ -38,17 +38,20 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
38
38
|
facility: {
|
|
39
39
|
contacts: {
|
|
40
40
|
contact: {
|
|
41
|
-
status: "
|
|
42
|
-
department:
|
|
41
|
+
status: "Active",
|
|
42
|
+
department: 123,
|
|
43
|
+
},
|
|
44
|
+
adminContact: {
|
|
45
|
+
status: "Active",
|
|
46
|
+
department: 123,
|
|
43
47
|
},
|
|
44
|
-
adminContact: null,
|
|
45
48
|
techContact: {
|
|
46
|
-
status: "
|
|
49
|
+
status: "Inactive",
|
|
47
50
|
department: 123,
|
|
48
51
|
},
|
|
49
52
|
greenSecurityCsm: {
|
|
50
|
-
status: "
|
|
51
|
-
department:
|
|
53
|
+
status: "Active",
|
|
54
|
+
department: 123,
|
|
52
55
|
},
|
|
53
56
|
accountManager: {
|
|
54
57
|
status: "Inactive",
|
|
@@ -75,9 +78,9 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
75
78
|
},
|
|
76
79
|
});
|
|
77
80
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
78
|
-
longitude:
|
|
79
|
-
latitude:
|
|
80
|
-
zoneId:
|
|
81
|
+
longitude: 6436.85,
|
|
82
|
+
latitude: 6346.87,
|
|
83
|
+
zoneId: 138233,
|
|
81
84
|
});
|
|
82
85
|
expect(result).toBeDefined();
|
|
83
86
|
expect(result).toEqual({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zones.test.js","sourceRoot":"","sources":["../../../src/__tests__/zones.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;IACrD,MAAM,cAAc,GAAG,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;IAEzE,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,OAAO;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC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CAAC,CAAC,CAAC"}
|
|
@@ -6,13 +6,15 @@ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeo
|
|
|
6
6
|
import * as errors from "../models/errors/index.js";
|
|
7
7
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
8
8
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
9
10
|
import { APIPromise } from "../types/async.js";
|
|
10
11
|
import { Result } from "../types/fp.js";
|
|
11
12
|
/**
|
|
12
13
|
* Get current user
|
|
13
14
|
*
|
|
14
15
|
* @remarks
|
|
15
|
-
* Returns a user object for the user represented by the authorization token
|
|
16
|
+
* Returns a user object for the user represented by the authorization token.
|
|
17
|
+
* For Company Manager users, the `company` object supports expand. Available values: company.vendor_fields, company.location, company.vendor_type_restrictions.
|
|
16
18
|
*/
|
|
17
|
-
export declare function usersGetCurrentUser(client: GreenSecurityCore, options?: RequestOptions): APIPromise<Result<components.User, errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
|
+
export declare function usersGetCurrentUser(client: GreenSecurityCore, request: operations.GetCurrentUserRequest, options?: RequestOptions): APIPromise<Result<components.User, errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
20
|
//# sourceMappingURL=usersGetCurrentUser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usersGetCurrentUser.d.ts","sourceRoot":"","sources":["../../../src/funcs/usersGetCurrentUser.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"usersGetCurrentUser.d.ts","sourceRoot":"","sources":["../../../src/funcs/usersGetCurrentUser.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,IAAI,EACb,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1,24 +1,37 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
4
5
|
import * as M from "../lib/matchers.js";
|
|
5
6
|
import { compactMap } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
8
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
7
9
|
import { pathToFunc } from "../lib/url.js";
|
|
8
10
|
import * as components from "../models/components/index.js";
|
|
9
11
|
import * as errors from "../models/errors/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
10
13
|
import { APIPromise } from "../types/async.js";
|
|
11
14
|
/**
|
|
12
15
|
* Get current user
|
|
13
16
|
*
|
|
14
17
|
* @remarks
|
|
15
|
-
* Returns a user object for the user represented by the authorization token
|
|
18
|
+
* Returns a user object for the user represented by the authorization token.
|
|
19
|
+
* For Company Manager users, the `company` object supports expand. Available values: company.vendor_fields, company.location, company.vendor_type_restrictions.
|
|
16
20
|
*/
|
|
17
|
-
export function usersGetCurrentUser(client, options) {
|
|
18
|
-
return new APIPromise($do(client, options));
|
|
21
|
+
export function usersGetCurrentUser(client, request, options) {
|
|
22
|
+
return new APIPromise($do(client, request, options));
|
|
19
23
|
}
|
|
20
|
-
async function $do(client, options) {
|
|
24
|
+
async function $do(client, request, options) {
|
|
25
|
+
const parsed = safeParse(request, (value) => operations.GetCurrentUserRequest$outboundSchema.parse(value), "Input validation failed");
|
|
26
|
+
if (!parsed.ok) {
|
|
27
|
+
return [parsed, { status: "invalid" }];
|
|
28
|
+
}
|
|
29
|
+
const payload = parsed.value;
|
|
30
|
+
const body = null;
|
|
21
31
|
const path = pathToFunc("/users/me")();
|
|
32
|
+
const query = encodeFormQuery({
|
|
33
|
+
"expand": payload.expand,
|
|
34
|
+
}, { explode: false });
|
|
22
35
|
const headers = new Headers(compactMap({
|
|
23
36
|
Accept: "application/json",
|
|
24
37
|
}));
|
|
@@ -42,6 +55,8 @@ async function $do(client, options) {
|
|
|
42
55
|
baseURL: options?.serverURL,
|
|
43
56
|
path: path,
|
|
44
57
|
headers: headers,
|
|
58
|
+
query: query,
|
|
59
|
+
body: body,
|
|
45
60
|
userAgent: client._options.userAgent,
|
|
46
61
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
47
62
|
}, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usersGetCurrentUser.js","sourceRoot":"","sources":["../../../src/funcs/usersGetCurrentUser.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"usersGetCurrentUser.js","sourceRoot":"","sources":["../../../src/funcs/usersGetCurrentUser.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAS5D,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CACjC,MAAyB,EACzB,OAAyC,EACzC,OAAwB;IAexB,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAyB,EACzB,OAAyC,EACzC,OAAwB;IAkBxB,MAAM,MAAM,GAAG,SAAS,CACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,oCAAoC,CAAC,KAAK,CAAC,KAAK,CAAC,EACvE,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,EAAE,UAAU,CAAC,kBAAkB,CAAC,EAC1C,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,8BAA8B,CAAC,EACtE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CACrB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GreenSecurityCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Create vendor field
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Create a new vendor field for a company. The name can only be set on creation;
|
|
16
|
+
* once created, only the show_to_vendor flag can be updated via PATCH.
|
|
17
|
+
* Requires access to the company (company manager, admin, or API user with company scope).
|
|
18
|
+
*
|
|
19
|
+
* For API users: source_user_id is required. The API user acts on behalf of that user
|
|
20
|
+
* (e.g. a company manager). The app must be activated for that user via MarketplaceAppActivation.
|
|
21
|
+
*/
|
|
22
|
+
export declare function vendorFieldsCreateVendorField(client: GreenSecurityCore, request: operations.CreateVendorFieldRequestBody, options?: RequestOptions): APIPromise<Result<operations.CreateVendorFieldResponseBody, errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
23
|
+
//# sourceMappingURL=vendorFieldsCreateVendorField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorFieldsCreateVendorField.d.ts","sourceRoot":"","sources":["../../../src/funcs/vendorFieldsCreateVendorField.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,6BAA6B,EACtC,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
5
|
+
import * as M from "../lib/matchers.js";
|
|
6
|
+
import { compactMap } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
+
import { pathToFunc } from "../lib/url.js";
|
|
10
|
+
import * as errors from "../models/errors/index.js";
|
|
11
|
+
import * as operations from "../models/operations/index.js";
|
|
12
|
+
import { APIPromise } from "../types/async.js";
|
|
13
|
+
/**
|
|
14
|
+
* Create vendor field
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Create a new vendor field for a company. The name can only be set on creation;
|
|
18
|
+
* once created, only the show_to_vendor flag can be updated via PATCH.
|
|
19
|
+
* Requires access to the company (company manager, admin, or API user with company scope).
|
|
20
|
+
*
|
|
21
|
+
* For API users: source_user_id is required. The API user acts on behalf of that user
|
|
22
|
+
* (e.g. a company manager). The app must be activated for that user via MarketplaceAppActivation.
|
|
23
|
+
*/
|
|
24
|
+
export function vendorFieldsCreateVendorField(client, request, options) {
|
|
25
|
+
return new APIPromise($do(client, request, options));
|
|
26
|
+
}
|
|
27
|
+
async function $do(client, request, options) {
|
|
28
|
+
const parsed = safeParse(request, (value) => operations.CreateVendorFieldRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
29
|
+
if (!parsed.ok) {
|
|
30
|
+
return [parsed, { status: "invalid" }];
|
|
31
|
+
}
|
|
32
|
+
const payload = parsed.value;
|
|
33
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
34
|
+
const path = pathToFunc("/vendor-fields")();
|
|
35
|
+
const headers = new Headers(compactMap({
|
|
36
|
+
"Content-Type": "application/json",
|
|
37
|
+
Accept: "application/json",
|
|
38
|
+
}));
|
|
39
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
40
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41
|
+
const context = {
|
|
42
|
+
options: client._options,
|
|
43
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44
|
+
operationID: "createVendorField",
|
|
45
|
+
oAuth2Scopes: null,
|
|
46
|
+
resolvedSecurity: requestSecurity,
|
|
47
|
+
securitySource: client._options.security,
|
|
48
|
+
retryConfig: options?.retries
|
|
49
|
+
|| client._options.retryConfig
|
|
50
|
+
|| { strategy: "none" },
|
|
51
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
52
|
+
};
|
|
53
|
+
const requestRes = client._createRequest(context, {
|
|
54
|
+
security: requestSecurity,
|
|
55
|
+
method: "POST",
|
|
56
|
+
baseURL: options?.serverURL,
|
|
57
|
+
path: path,
|
|
58
|
+
headers: headers,
|
|
59
|
+
body: body,
|
|
60
|
+
userAgent: client._options.userAgent,
|
|
61
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
62
|
+
}, options);
|
|
63
|
+
if (!requestRes.ok) {
|
|
64
|
+
return [requestRes, { status: "invalid" }];
|
|
65
|
+
}
|
|
66
|
+
const req = requestRes.value;
|
|
67
|
+
const doResult = await client._do(req, {
|
|
68
|
+
context,
|
|
69
|
+
errorCodes: ["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
|
70
|
+
retryConfig: context.retryConfig,
|
|
71
|
+
retryCodes: context.retryCodes,
|
|
72
|
+
});
|
|
73
|
+
if (!doResult.ok) {
|
|
74
|
+
return [doResult, { status: "request-error", request: req }];
|
|
75
|
+
}
|
|
76
|
+
const response = doResult.value;
|
|
77
|
+
const responseFields = {
|
|
78
|
+
HttpMeta: { Response: response, Request: req },
|
|
79
|
+
};
|
|
80
|
+
const [result] = await M.match(M.json(201, operations.CreateVendorFieldResponseBody$inboundSchema), M.jsonErr([400, 401, 403, 404, 422], errors.ApiErrorResponse$inboundSchema), M.fail("4XX"), M.fail([500, "5XX"]))(response, req, { extraFields: responseFields });
|
|
81
|
+
if (!result.ok) {
|
|
82
|
+
return [result, { status: "complete", request: req, response }];
|
|
83
|
+
}
|
|
84
|
+
return [result, { status: "complete", request: req, response }];
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=vendorFieldsCreateVendorField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorFieldsCreateVendorField.js","sourceRoot":"","sources":["../../../src/funcs/vendorFieldsCreateVendorField.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,6BAA6B,CAC3C,MAAyB,EACzB,OAAgD,EAChD,OAAwB;IAexB,OAAO,IAAI,UAAU,CAAC,G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AAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,2CAA2C,CAAC,EACnE,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,8BAA8B,CAAC,EAC3E,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CACrB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GreenSecurityCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Update vendor field
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Update a vendor field. Only the show_to_vendor flag can be changed;
|
|
16
|
+
* the name cannot be modified after creation.
|
|
17
|
+
*
|
|
18
|
+
* For API users: source_user_id is required. The API user acts on behalf of that user.
|
|
19
|
+
*/
|
|
20
|
+
export declare function vendorFieldsUpdateVendorField(client: GreenSecurityCore, request: operations.UpdateVendorFieldRequest, options?: RequestOptions): APIPromise<Result<operations.UpdateVendorFieldResponseBody, errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
21
|
+
//# sourceMappingURL=vendorFieldsUpdateVendorField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorFieldsUpdateVendorField.d.ts","sourceRoot":"","sources":["../../../src/funcs/vendorFieldsUpdateVendorField.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,6BAA6B,EACtC,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
5
|
+
import * as M from "../lib/matchers.js";
|
|
6
|
+
import { compactMap } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
+
import { pathToFunc } from "../lib/url.js";
|
|
10
|
+
import * as errors from "../models/errors/index.js";
|
|
11
|
+
import * as operations from "../models/operations/index.js";
|
|
12
|
+
import { APIPromise } from "../types/async.js";
|
|
13
|
+
/**
|
|
14
|
+
* Update vendor field
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Update a vendor field. Only the show_to_vendor flag can be changed;
|
|
18
|
+
* the name cannot be modified after creation.
|
|
19
|
+
*
|
|
20
|
+
* For API users: source_user_id is required. The API user acts on behalf of that user.
|
|
21
|
+
*/
|
|
22
|
+
export function vendorFieldsUpdateVendorField(client, request, options) {
|
|
23
|
+
return new APIPromise($do(client, request, options));
|
|
24
|
+
}
|
|
25
|
+
async function $do(client, request, options) {
|
|
26
|
+
const parsed = safeParse(request, (value) => operations.UpdateVendorFieldRequest$outboundSchema.parse(value), "Input validation failed");
|
|
27
|
+
if (!parsed.ok) {
|
|
28
|
+
return [parsed, { status: "invalid" }];
|
|
29
|
+
}
|
|
30
|
+
const payload = parsed.value;
|
|
31
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
32
|
+
const pathParams = {
|
|
33
|
+
id: encodeSimple("id", payload.id, {
|
|
34
|
+
explode: false,
|
|
35
|
+
charEncoding: "percent",
|
|
36
|
+
}),
|
|
37
|
+
};
|
|
38
|
+
const path = pathToFunc("/vendor-fields/{id}")(pathParams);
|
|
39
|
+
const headers = new Headers(compactMap({
|
|
40
|
+
"Content-Type": "application/json",
|
|
41
|
+
Accept: "application/json",
|
|
42
|
+
}));
|
|
43
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
44
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45
|
+
const context = {
|
|
46
|
+
options: client._options,
|
|
47
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48
|
+
operationID: "updateVendorField",
|
|
49
|
+
oAuth2Scopes: null,
|
|
50
|
+
resolvedSecurity: requestSecurity,
|
|
51
|
+
securitySource: client._options.security,
|
|
52
|
+
retryConfig: options?.retries
|
|
53
|
+
|| client._options.retryConfig
|
|
54
|
+
|| { strategy: "none" },
|
|
55
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
56
|
+
};
|
|
57
|
+
const requestRes = client._createRequest(context, {
|
|
58
|
+
security: requestSecurity,
|
|
59
|
+
method: "PATCH",
|
|
60
|
+
baseURL: options?.serverURL,
|
|
61
|
+
path: path,
|
|
62
|
+
headers: headers,
|
|
63
|
+
body: body,
|
|
64
|
+
userAgent: client._options.userAgent,
|
|
65
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
66
|
+
}, options);
|
|
67
|
+
if (!requestRes.ok) {
|
|
68
|
+
return [requestRes, { status: "invalid" }];
|
|
69
|
+
}
|
|
70
|
+
const req = requestRes.value;
|
|
71
|
+
const doResult = await client._do(req, {
|
|
72
|
+
context,
|
|
73
|
+
errorCodes: ["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
|
74
|
+
retryConfig: context.retryConfig,
|
|
75
|
+
retryCodes: context.retryCodes,
|
|
76
|
+
});
|
|
77
|
+
if (!doResult.ok) {
|
|
78
|
+
return [doResult, { status: "request-error", request: req }];
|
|
79
|
+
}
|
|
80
|
+
const response = doResult.value;
|
|
81
|
+
const responseFields = {
|
|
82
|
+
HttpMeta: { Response: response, Request: req },
|
|
83
|
+
};
|
|
84
|
+
const [result] = await M.match(M.json(200, operations.UpdateVendorFieldResponseBody$inboundSchema), M.jsonErr([400, 401, 403, 404, 422], errors.ApiErrorResponse$inboundSchema), M.fail("4XX"), M.fail([500, "5XX"]))(response, req, { extraFields: responseFields });
|
|
85
|
+
if (!result.ok) {
|
|
86
|
+
return [result, { status: "complete", request: req, response }];
|
|
87
|
+
}
|
|
88
|
+
return [result, { status: "complete", request: req, response }];
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=vendorFieldsUpdateVendorField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorFieldsUpdateVendorField.js","sourceRoot":"","sources":["../../../src/funcs/vendorFieldsUpdateVendorField.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,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CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "0.0.11";
|
|
38
|
-
readonly sdkVersion: "0.43.1-beta.
|
|
39
|
-
readonly genVersion: "2.869.
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.43.1-beta.
|
|
38
|
+
readonly sdkVersion: "0.43.1-beta.106";
|
|
39
|
+
readonly genVersion: "2.869.25";
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.43.1-beta.106 2.869.25 0.0.11 @greensecurity/javascript-sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -39,8 +39,8 @@ export function serverURLFromOptions(options) {
|
|
|
39
39
|
export const SDK_METADATA = {
|
|
40
40
|
language: "typescript",
|
|
41
41
|
openapiDocVersion: "0.0.11",
|
|
42
|
-
sdkVersion: "0.43.1-beta.
|
|
43
|
-
genVersion: "2.869.
|
|
44
|
-
userAgent: "speakeasy-sdk/typescript 0.43.1-beta.
|
|
42
|
+
sdkVersion: "0.43.1-beta.106",
|
|
43
|
+
genVersion: "2.869.25",
|
|
44
|
+
userAgent: "speakeasy-sdk/typescript 0.43.1-beta.106 2.869.25 0.0.11 @greensecurity/javascript-sdk",
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.js.map
|