@greensecurity/javascript-sdk 0.49.0-beta.0 → 0.49.0-beta.2

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.
Files changed (98) hide show
  1. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  2. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  3. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  4. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  5. package/dist/commonjs/__tests__/zones.test.js +29 -3
  6. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  7. package/dist/commonjs/admin-funcs/lookupsAddressAutocomplete.d.ts +1 -1
  8. package/dist/commonjs/admin-funcs/lookupsAddressAutocomplete.d.ts.map +1 -1
  9. package/dist/commonjs/admin-funcs/lookupsAddressAutocomplete.js +2 -1
  10. package/dist/commonjs/admin-funcs/lookupsAddressAutocomplete.js.map +1 -1
  11. package/dist/commonjs/admin-funcs/lookupsAddressPlace.d.ts +1 -1
  12. package/dist/commonjs/admin-funcs/lookupsAddressPlace.d.ts.map +1 -1
  13. package/dist/commonjs/admin-funcs/lookupsAddressPlace.js +4 -5
  14. package/dist/commonjs/admin-funcs/lookupsAddressPlace.js.map +1 -1
  15. package/dist/commonjs/admin-funcs/lookupsAddressValidation.d.ts +1 -1
  16. package/dist/commonjs/admin-funcs/lookupsAddressValidation.d.ts.map +1 -1
  17. package/dist/commonjs/admin-funcs/lookupsAddressValidation.js +1 -1
  18. package/dist/commonjs/admin-funcs/lookupsAddressValidation.js.map +1 -1
  19. package/dist/commonjs/admin-funcs/subscriptionUpdatePaymentProfile.d.ts +2 -0
  20. package/dist/commonjs/admin-funcs/subscriptionUpdatePaymentProfile.d.ts.map +1 -1
  21. package/dist/commonjs/admin-funcs/subscriptionUpdatePaymentProfile.js.map +1 -1
  22. package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts +1 -1
  23. package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js +1 -1
  24. package/dist/commonjs/index.extras.d.ts +0 -4
  25. package/dist/commonjs/index.extras.d.ts.map +1 -1
  26. package/dist/commonjs/index.extras.js +0 -4
  27. package/dist/commonjs/index.extras.js.map +1 -1
  28. package/dist/commonjs/lib/config.d.ts +3 -3
  29. package/dist/commonjs/lib/config.js +3 -3
  30. package/dist/commonjs/react-query/zonesSecurityZoneCheckin.d.ts +1 -1
  31. package/dist/commonjs/react-query/zonesSecurityZoneCheckin.js +1 -1
  32. package/dist/commonjs/sdk/zones.d.ts +1 -1
  33. package/dist/commonjs/sdk/zones.js +1 -1
  34. package/dist/esm/__tests__/vendors.test.js +1 -1
  35. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  36. package/dist/esm/__tests__/webhooks.test.js +1 -1
  37. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  38. package/dist/esm/__tests__/zones.test.js +29 -3
  39. package/dist/esm/__tests__/zones.test.js.map +1 -1
  40. package/dist/esm/admin-funcs/lookupsAddressAutocomplete.d.ts +1 -1
  41. package/dist/esm/admin-funcs/lookupsAddressAutocomplete.d.ts.map +1 -1
  42. package/dist/esm/admin-funcs/lookupsAddressAutocomplete.js +2 -1
  43. package/dist/esm/admin-funcs/lookupsAddressAutocomplete.js.map +1 -1
  44. package/dist/esm/admin-funcs/lookupsAddressPlace.d.ts +1 -1
  45. package/dist/esm/admin-funcs/lookupsAddressPlace.d.ts.map +1 -1
  46. package/dist/esm/admin-funcs/lookupsAddressPlace.js +4 -5
  47. package/dist/esm/admin-funcs/lookupsAddressPlace.js.map +1 -1
  48. package/dist/esm/admin-funcs/lookupsAddressValidation.d.ts +1 -1
  49. package/dist/esm/admin-funcs/lookupsAddressValidation.d.ts.map +1 -1
  50. package/dist/esm/admin-funcs/lookupsAddressValidation.js +1 -1
  51. package/dist/esm/admin-funcs/lookupsAddressValidation.js.map +1 -1
  52. package/dist/esm/admin-funcs/subscriptionUpdatePaymentProfile.d.ts +2 -0
  53. package/dist/esm/admin-funcs/subscriptionUpdatePaymentProfile.d.ts.map +1 -1
  54. package/dist/esm/admin-funcs/subscriptionUpdatePaymentProfile.js.map +1 -1
  55. package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts +1 -1
  56. package/dist/esm/funcs/zonesSecurityZoneCheckin.js +1 -1
  57. package/dist/esm/index.extras.d.ts +0 -4
  58. package/dist/esm/index.extras.d.ts.map +1 -1
  59. package/dist/esm/index.extras.js +0 -4
  60. package/dist/esm/index.extras.js.map +1 -1
  61. package/dist/esm/lib/config.d.ts +3 -3
  62. package/dist/esm/lib/config.js +3 -3
  63. package/dist/esm/react-query/zonesSecurityZoneCheckin.d.ts +1 -1
  64. package/dist/esm/react-query/zonesSecurityZoneCheckin.js +1 -1
  65. package/dist/esm/sdk/zones.d.ts +1 -1
  66. package/dist/esm/sdk/zones.js +1 -1
  67. package/jsr.json +1 -1
  68. package/package.json +1 -1
  69. package/src/__tests__/vendors.test.ts +1 -1
  70. package/src/__tests__/webhooks.test.ts +1 -1
  71. package/src/__tests__/zones.test.ts +29 -3
  72. package/src/admin-funcs/lookupsAddressAutocomplete.ts +2 -2
  73. package/src/admin-funcs/lookupsAddressPlace.ts +4 -6
  74. package/src/admin-funcs/lookupsAddressValidation.ts +3 -2
  75. package/src/admin-funcs/subscriptionUpdatePaymentProfile.ts +3 -0
  76. package/src/funcs/zonesSecurityZoneCheckin.ts +1 -1
  77. package/src/index.extras.ts +0 -4
  78. package/src/lib/config.ts +3 -3
  79. package/src/react-query/zonesSecurityZoneCheckin.ts +1 -1
  80. package/src/sdk/zones.ts +1 -1
  81. package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.d.ts +0 -3
  82. package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.d.ts.map +0 -1
  83. package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.js +0 -9
  84. package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.js.map +0 -1
  85. package/dist/commonjs/admin-funcs/vendorGetPaymentForm.d.ts +0 -3
  86. package/dist/commonjs/admin-funcs/vendorGetPaymentForm.d.ts.map +0 -1
  87. package/dist/commonjs/admin-funcs/vendorGetPaymentForm.js +0 -9
  88. package/dist/commonjs/admin-funcs/vendorGetPaymentForm.js.map +0 -1
  89. package/dist/esm/admin-funcs/companyManagerGetPaymentForm.d.ts +0 -3
  90. package/dist/esm/admin-funcs/companyManagerGetPaymentForm.d.ts.map +0 -1
  91. package/dist/esm/admin-funcs/companyManagerGetPaymentForm.js +0 -6
  92. package/dist/esm/admin-funcs/companyManagerGetPaymentForm.js.map +0 -1
  93. package/dist/esm/admin-funcs/vendorGetPaymentForm.d.ts +0 -3
  94. package/dist/esm/admin-funcs/vendorGetPaymentForm.d.ts.map +0 -1
  95. package/dist/esm/admin-funcs/vendorGetPaymentForm.js +0 -6
  96. package/dist/esm/admin-funcs/vendorGetPaymentForm.js.map +0 -1
  97. package/src/admin-funcs/companyManagerGetPaymentForm.ts +0 -6
  98. package/src/admin-funcs/vendorGetPaymentForm.ts +0 -6
@@ -121,7 +121,7 @@ test("Vendors List Vendor Credits", async () => {
121
121
  page: 1,
122
122
  useUrlParams: false,
123
123
  },
124
- creditBalance: 473.87,
124
+ creditBalance: 8505.64,
125
125
  });
126
126
  });
127
127
 
@@ -20,7 +20,7 @@ test("Webhooks List All Webhook Endpoints", async () => {
20
20
  const testWebhookListForVendorUserResult = await greenSecurity.webhooks
21
21
  .listAllWebhookEndpoints({
22
22
  itemsPerPage: 25,
23
- desc: 0,
23
+ desc: true,
24
24
  sort: "",
25
25
  });
26
26
  expect(testWebhookListForVendorUserResult).toBeDefined();
@@ -39,7 +39,32 @@ test("Zones List Or Search Security Zones", async () => {
39
39
  facility: {},
40
40
  },
41
41
  {
42
- facility: {},
42
+ facility: {
43
+ contacts: {
44
+ contact: {
45
+ status: "Inactive",
46
+ department: 123,
47
+ },
48
+ adminContact: {
49
+ status: "Deleted",
50
+ department: 123,
51
+ },
52
+ techContact: {
53
+ status: "Deleted",
54
+ department: 123,
55
+ },
56
+ greenSecurityCsm: null,
57
+ accountManager: {
58
+ status: "Deleted",
59
+ department: 123,
60
+ },
61
+ },
62
+ vendorGuestPolicy: {
63
+ enabled: false,
64
+ vendorGuestLimitAndOr: "and",
65
+ vendorGuestRequireEmail: false,
66
+ },
67
+ },
43
68
  },
44
69
  ],
45
70
  });
@@ -57,8 +82,9 @@ test("Zones Security Zone Checkin", async () => {
57
82
  });
58
83
 
59
84
  const result = await greenSecurity.zones.securityZoneCheckin({
60
- qrCode: "<value>",
61
- zoneId: 544883,
85
+ longitude: 8873.74,
86
+ latitude: 3624.26,
87
+ zoneId: 95913,
62
88
  });
63
89
  expect(result).toBeDefined();
64
90
  expect(result).toEqual({});
@@ -4,17 +4,17 @@ import { $doGetSingle, hashToQueryString, internalApiResult } from "./doAdmin.js
4
4
 
5
5
  // Returns Google Places address suggestions for a partly typed street address.
6
6
  export function lookupsAddressAutocomplete(
7
- vendorCredentialId: number,
7
+ vendorCredentialId: number | null | undefined,
8
8
  input: string,
9
9
  sessionToken: string,
10
10
  country?: string,
11
11
  options?: RequestOptions,
12
12
  ): internalApiResult {
13
13
  const params: Record<string, string> = {
14
- vendor_credential_id: String(vendorCredentialId),
15
14
  input,
16
15
  session_token: sessionToken,
17
16
  };
17
+ if (vendorCredentialId != null) params["vendor_credential_id"] = String(vendorCredentialId);
18
18
  if (country) params["country"] = country;
19
19
 
20
20
  return new APIPromise(
@@ -5,16 +5,14 @@ import { $doGetSingle, hashToQueryString, internalApiResult } from "./doAdmin.js
5
5
  // Returns the address fields for an autocomplete suggestion the user picked. Pass the same sessionToken used for
6
6
  // the autocomplete requests.
7
7
  export function lookupsAddressPlace(
8
- vendorCredentialId: number,
8
+ vendorCredentialId: number | null | undefined,
9
9
  placeId: string,
10
10
  sessionToken: string,
11
11
  options?: RequestOptions,
12
12
  ): internalApiResult {
13
- const query = hashToQueryString({
14
- vendor_credential_id: vendorCredentialId,
15
- place_id: placeId,
16
- session_token: sessionToken,
17
- });
13
+ const params: Record<string, string> = { place_id: placeId, session_token: sessionToken };
14
+ if (vendorCredentialId != null) params["vendor_credential_id"] = String(vendorCredentialId);
15
+ const query = hashToQueryString(params);
18
16
 
19
17
  return new APIPromise($doGetSingle(`/lookups/address-place?${query}`, {}, options));
20
18
  }
@@ -3,7 +3,8 @@ import { RequestOptions } from "../lib/sdks.js";
3
3
  import { $doPost, internalApiResult } from "./doAdmin.js";
4
4
 
5
5
  export type lookupsAddressValidationRequest = {
6
- vendor_credential_id: number;
6
+ // Omit for a billing address on a payment form, which has no credential.
7
+ vendor_credential_id?: number;
7
8
  address1: string;
8
9
  address2?: string;
9
10
  city?: string;
@@ -12,7 +13,7 @@ export type lookupsAddressValidationRequest = {
12
13
  country?: string;
13
14
  };
14
15
 
15
- // Checks a shipping address with Google's Address Validation API
16
+ // Checks a shipping or billing address with Google's Address Validation API
16
17
  export function lookupsAddressValidation(
17
18
  request: lookupsAddressValidationRequest,
18
19
  options?: RequestOptions,
@@ -8,6 +8,9 @@ export type subscriptionUpdatePaymentProfileRequest = {
8
8
  first_name?: string;
9
9
  last_name?: string;
10
10
  address?: string;
11
+ address2?: string;
12
+ // From POST /lookups/address-validation. Required when the country is one Google can validate.
13
+ address_verification_hash?: string;
11
14
  city?: string;
12
15
  state?: string;
13
16
  zip?: string;
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
32
32
  * @remarks
33
33
  * Requests a check-in to a security zone.
34
34
  *
35
- * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission: the caller's role and their relationship to the record determine what the response contains.
35
+ * **Permissions.** Requires the `vendor_scans.add` permission, including for a vendor checking themselves in. App tokens (`gsu_`, `gsi_`) get `403`.
36
36
  *
37
37
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
38
38
  */
@@ -49,10 +49,8 @@ import { smartBadgeReportVerifiedPsk } from "./admin-funcs/smartBadgeReportVerif
49
49
  import { notifyVendorCredentialFileUploaded } from "./admin-funcs/notifyVendorCredentialFileUploaded.js";
50
50
  import { vendorCredentialGetFormLineItems } from "./admin-funcs/vendorCredentialGetFormLineItems.js";
51
51
  import { vendorCredentialCreateFormQuote } from "./admin-funcs/vendorCredentialCreateFormQuote.js";
52
- import { companyManagerGetPaymentForm } from "./admin-funcs/companyManagerGetPaymentForm.js";
53
52
  import { companyManagerGetAutopay } from "./admin-funcs/companyManagerGetAutopay.js";
54
53
  import { companyManagerUpdateAutopay } from "./admin-funcs/companyManagerUpdateAutopay.js";
55
- import { vendorGetPaymentForm } from "./admin-funcs/vendorGetPaymentForm.js";
56
54
  import { vendorGetSystemsRequiringSmartBadge } from "./admin-funcs/vendorGetSystemsRequiringSmartBadge.js";
57
55
  import { vendorGetCompanyCredentialsSummary } from "./admin-funcs/vendorGetCompanyCredentialsSummary.js";
58
56
 
@@ -183,13 +181,11 @@ export const __internal = {
183
181
  },
184
182
 
185
183
  companyManager: {
186
- getPaymentForm: companyManagerGetPaymentForm,
187
184
  getAutopay: companyManagerGetAutopay,
188
185
  updateAutopay: companyManagerUpdateAutopay,
189
186
  },
190
187
 
191
188
  vendor: {
192
- getPaymentForm: vendorGetPaymentForm,
193
189
  getSystemsRequiringSmartBadge: vendorGetSystemsRequiringSmartBadge,
194
190
  getCompanyCredentialsSummary: vendorGetCompanyCredentialsSummary
195
191
  },
package/src/lib/config.ts CHANGED
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "0.48.0",
83
- sdkVersion: "0.49.0-beta.0",
84
- genVersion: "2.954.8",
83
+ sdkVersion: "0.49.0-beta.2",
84
+ genVersion: "2.956.1",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.49.0-beta.0 2.954.8 0.48.0 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.49.0-beta.2 2.956.1 0.48.0 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -52,7 +52,7 @@ export type ZonesSecurityZoneCheckinMutationError =
52
52
  * @remarks
53
53
  * Requests a check-in to a security zone.
54
54
  *
55
- * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission: the caller's role and their relationship to the record determine what the response contains.
55
+ * **Permissions.** Requires the `vendor_scans.add` permission, including for a vendor checking themselves in. App tokens (`gsu_`, `gsi_`) get `403`.
56
56
  */
57
57
  export function useZonesSecurityZoneCheckinMutation(
58
58
  options?: MutationHookOptions<
package/src/sdk/zones.ts CHANGED
@@ -69,7 +69,7 @@ export class Zones extends ClientSDK {
69
69
  * @remarks
70
70
  * Requests a check-in to a security zone.
71
71
  *
72
- * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission: the caller's role and their relationship to the record determine what the response contains.
72
+ * **Permissions.** Requires the `vendor_scans.add` permission, including for a vendor checking themselves in. App tokens (`gsu_`, `gsi_`) get `403`.
73
73
  */
74
74
  async securityZoneCheckin(
75
75
  request: operations.SecurityZoneCheckinRequestBody,
@@ -1,3 +0,0 @@
1
- import { internalApiResult } from "./doAdmin.js";
2
- export declare function companyManagerGetPaymentForm(): internalApiResult;
3
- //# sourceMappingURL=companyManagerGetPaymentForm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"companyManagerGetPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/companyManagerGetPaymentForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAE/D,wBAAgB,4BAA4B,IAAI,iBAAiB,CAEhE"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.companyManagerGetPaymentForm = companyManagerGetPaymentForm;
4
- const async_js_1 = require("../types/async.js");
5
- const doAdmin_js_1 = require("./doAdmin.js");
6
- function companyManagerGetPaymentForm() {
7
- return new async_js_1.APIPromise((0, doAdmin_js_1.$doGetSingle)("/company_managers/me/payment_form", {}));
8
- }
9
- //# sourceMappingURL=companyManagerGetPaymentForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"companyManagerGetPaymentForm.js","sourceRoot":"","sources":["../../../src/admin-funcs/companyManagerGetPaymentForm.ts"],"names":[],"mappings":";;AAGA,oEAEC;AALD,gDAA+C;AAC/C,6CAA+D;AAE/D,SAAgB,4BAA4B;IAC1C,OAAO,IAAI,qBAAU,CAAC,IAAA,yBAAY,EAAC,mCAAmC,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/E,CAAC"}
@@ -1,3 +0,0 @@
1
- import { internalApiResult } from "./doAdmin.js";
2
- export declare function vendorGetPaymentForm(): internalApiResult;
3
- //# sourceMappingURL=vendorGetPaymentForm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vendorGetPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/vendorGetPaymentForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAE/D,wBAAgB,oBAAoB,IAAI,iBAAiB,CAExD"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.vendorGetPaymentForm = vendorGetPaymentForm;
4
- const async_js_1 = require("../types/async.js");
5
- const doAdmin_js_1 = require("./doAdmin.js");
6
- function vendorGetPaymentForm() {
7
- return new async_js_1.APIPromise((0, doAdmin_js_1.$doGetSingle)("/vendors/me/payment_form", {}));
8
- }
9
- //# sourceMappingURL=vendorGetPaymentForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vendorGetPaymentForm.js","sourceRoot":"","sources":["../../../src/admin-funcs/vendorGetPaymentForm.ts"],"names":[],"mappings":";;AAGA,oDAEC;AALD,gDAA+C;AAC/C,6CAA+D;AAE/D,SAAgB,oBAAoB;IAClC,OAAO,IAAI,qBAAU,CAAC,IAAA,yBAAY,EAAC,0BAA0B,EAAE,EAAE,CAAC,CAAC,CAAC;AACtE,CAAC"}
@@ -1,3 +0,0 @@
1
- import { internalApiResult } from "./doAdmin.js";
2
- export declare function companyManagerGetPaymentForm(): internalApiResult;
3
- //# sourceMappingURL=companyManagerGetPaymentForm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"companyManagerGetPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/companyManagerGetPaymentForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAE/D,wBAAgB,4BAA4B,IAAI,iBAAiB,CAEhE"}
@@ -1,6 +0,0 @@
1
- import { APIPromise } from "../types/async.js";
2
- import { $doGetSingle } from "./doAdmin.js";
3
- export function companyManagerGetPaymentForm() {
4
- return new APIPromise($doGetSingle("/company_managers/me/payment_form", {}));
5
- }
6
- //# sourceMappingURL=companyManagerGetPaymentForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"companyManagerGetPaymentForm.js","sourceRoot":"","sources":["../../../src/admin-funcs/companyManagerGetPaymentForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAqB,MAAM,cAAc,CAAC;AAE/D,MAAM,UAAU,4BAA4B;IAC1C,OAAO,IAAI,UAAU,CAAC,YAAY,CAAC,mCAAmC,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/E,CAAC"}
@@ -1,3 +0,0 @@
1
- import { internalApiResult } from "./doAdmin.js";
2
- export declare function vendorGetPaymentForm(): internalApiResult;
3
- //# sourceMappingURL=vendorGetPaymentForm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vendorGetPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/vendorGetPaymentForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAE/D,wBAAgB,oBAAoB,IAAI,iBAAiB,CAExD"}
@@ -1,6 +0,0 @@
1
- import { APIPromise } from "../types/async.js";
2
- import { $doGetSingle } from "./doAdmin.js";
3
- export function vendorGetPaymentForm() {
4
- return new APIPromise($doGetSingle("/vendors/me/payment_form", {}));
5
- }
6
- //# sourceMappingURL=vendorGetPaymentForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vendorGetPaymentForm.js","sourceRoot":"","sources":["../../../src/admin-funcs/vendorGetPaymentForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAqB,MAAM,cAAc,CAAC;AAE/D,MAAM,UAAU,oBAAoB;IAClC,OAAO,IAAI,UAAU,CAAC,YAAY,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAC,CAAC;AACtE,CAAC"}
@@ -1,6 +0,0 @@
1
- import { APIPromise } from "../types/async.js";
2
- import { $doGetSingle, internalApiResult } from "./doAdmin.js";
3
-
4
- export function companyManagerGetPaymentForm(): internalApiResult {
5
- return new APIPromise($doGetSingle("/company_managers/me/payment_form", {}));
6
- }
@@ -1,6 +0,0 @@
1
- import { APIPromise } from "../types/async.js";
2
- import { $doGetSingle, internalApiResult } from "./doAdmin.js";
3
-
4
- export function vendorGetPaymentForm(): internalApiResult {
5
- return new APIPromise($doGetSingle("/vendors/me/payment_form", {}));
6
- }