@greensecurity/javascript-sdk 0.45.0-beta.11 → 0.45.0-beta.12

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 (192) hide show
  1. package/README.md +1 -4
  2. package/dist/commonjs/__tests__/lookups.test.js +0 -21
  3. package/dist/commonjs/__tests__/lookups.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  5. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/zones.test.js +9 -11
  7. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  8. package/dist/commonjs/funcs/usersUpdateUser.d.ts +0 -6
  9. package/dist/commonjs/funcs/usersUpdateUser.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/usersUpdateUser.js +0 -6
  11. package/dist/commonjs/funcs/usersUpdateUser.js.map +1 -1
  12. package/dist/commonjs/funcs/vendorsCreateVendor.d.ts +0 -4
  13. package/dist/commonjs/funcs/vendorsCreateVendor.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/vendorsCreateVendor.js +0 -4
  15. package/dist/commonjs/funcs/vendorsCreateVendor.js.map +1 -1
  16. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +1 -9
  17. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
  18. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +1 -9
  19. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js.map +1 -1
  20. package/dist/commonjs/index.extras.d.ts +0 -6
  21. package/dist/commonjs/index.extras.d.ts.map +1 -1
  22. package/dist/commonjs/index.extras.js +0 -6
  23. package/dist/commonjs/index.extras.js.map +1 -1
  24. package/dist/commonjs/lib/config.d.ts +4 -4
  25. package/dist/commonjs/lib/config.js +4 -4
  26. package/dist/commonjs/models/operations/createvendorcompany.d.ts +1 -7
  27. package/dist/commonjs/models/operations/createvendorcompany.d.ts.map +1 -1
  28. package/dist/commonjs/models/operations/createvendorcompany.js.map +1 -1
  29. package/dist/commonjs/models/operations/index.d.ts +0 -1
  30. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  31. package/dist/commonjs/models/operations/index.js +0 -1
  32. package/dist/commonjs/models/operations/index.js.map +1 -1
  33. package/dist/commonjs/react-query/index.d.ts +0 -1
  34. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  35. package/dist/commonjs/react-query/index.js +0 -1
  36. package/dist/commonjs/react-query/index.js.map +1 -1
  37. package/dist/commonjs/react-query/usersUpdateUser.d.ts +0 -6
  38. package/dist/commonjs/react-query/usersUpdateUser.d.ts.map +1 -1
  39. package/dist/commonjs/react-query/usersUpdateUser.js +0 -6
  40. package/dist/commonjs/react-query/usersUpdateUser.js.map +1 -1
  41. package/dist/commonjs/react-query/vendorsCreateVendor.d.ts +0 -4
  42. package/dist/commonjs/react-query/vendorsCreateVendor.d.ts.map +1 -1
  43. package/dist/commonjs/react-query/vendorsCreateVendor.js +0 -4
  44. package/dist/commonjs/react-query/vendorsCreateVendor.js.map +1 -1
  45. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts +1 -9
  46. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
  47. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js +1 -9
  48. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js.map +1 -1
  49. package/dist/commonjs/sdk/lookups.d.ts +0 -22
  50. package/dist/commonjs/sdk/lookups.d.ts.map +1 -1
  51. package/dist/commonjs/sdk/lookups.js +0 -25
  52. package/dist/commonjs/sdk/lookups.js.map +1 -1
  53. package/dist/commonjs/sdk/users.d.ts +0 -6
  54. package/dist/commonjs/sdk/users.d.ts.map +1 -1
  55. package/dist/commonjs/sdk/users.js +0 -6
  56. package/dist/commonjs/sdk/users.js.map +1 -1
  57. package/dist/commonjs/sdk/vendors.d.ts +1 -13
  58. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  59. package/dist/commonjs/sdk/vendors.js +1 -13
  60. package/dist/commonjs/sdk/vendors.js.map +1 -1
  61. package/dist/esm/__tests__/lookups.test.js +0 -21
  62. package/dist/esm/__tests__/lookups.test.js.map +1 -1
  63. package/dist/esm/__tests__/vendors.test.js +1 -1
  64. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  65. package/dist/esm/__tests__/zones.test.js +9 -11
  66. package/dist/esm/__tests__/zones.test.js.map +1 -1
  67. package/dist/esm/funcs/usersUpdateUser.d.ts +0 -6
  68. package/dist/esm/funcs/usersUpdateUser.d.ts.map +1 -1
  69. package/dist/esm/funcs/usersUpdateUser.js +0 -6
  70. package/dist/esm/funcs/usersUpdateUser.js.map +1 -1
  71. package/dist/esm/funcs/vendorsCreateVendor.d.ts +0 -4
  72. package/dist/esm/funcs/vendorsCreateVendor.d.ts.map +1 -1
  73. package/dist/esm/funcs/vendorsCreateVendor.js +0 -4
  74. package/dist/esm/funcs/vendorsCreateVendor.js.map +1 -1
  75. package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +1 -9
  76. package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
  77. package/dist/esm/funcs/vendorsUpdateVendorDetails.js +1 -9
  78. package/dist/esm/funcs/vendorsUpdateVendorDetails.js.map +1 -1
  79. package/dist/esm/index.extras.d.ts +0 -6
  80. package/dist/esm/index.extras.d.ts.map +1 -1
  81. package/dist/esm/index.extras.js +0 -6
  82. package/dist/esm/index.extras.js.map +1 -1
  83. package/dist/esm/lib/config.d.ts +4 -4
  84. package/dist/esm/lib/config.js +4 -4
  85. package/dist/esm/models/operations/createvendorcompany.d.ts +1 -7
  86. package/dist/esm/models/operations/createvendorcompany.d.ts.map +1 -1
  87. package/dist/esm/models/operations/createvendorcompany.js.map +1 -1
  88. package/dist/esm/models/operations/index.d.ts +0 -1
  89. package/dist/esm/models/operations/index.d.ts.map +1 -1
  90. package/dist/esm/models/operations/index.js +0 -1
  91. package/dist/esm/models/operations/index.js.map +1 -1
  92. package/dist/esm/react-query/index.d.ts +0 -1
  93. package/dist/esm/react-query/index.d.ts.map +1 -1
  94. package/dist/esm/react-query/index.js +0 -1
  95. package/dist/esm/react-query/index.js.map +1 -1
  96. package/dist/esm/react-query/usersUpdateUser.d.ts +0 -6
  97. package/dist/esm/react-query/usersUpdateUser.d.ts.map +1 -1
  98. package/dist/esm/react-query/usersUpdateUser.js +0 -6
  99. package/dist/esm/react-query/usersUpdateUser.js.map +1 -1
  100. package/dist/esm/react-query/vendorsCreateVendor.d.ts +0 -4
  101. package/dist/esm/react-query/vendorsCreateVendor.d.ts.map +1 -1
  102. package/dist/esm/react-query/vendorsCreateVendor.js +0 -4
  103. package/dist/esm/react-query/vendorsCreateVendor.js.map +1 -1
  104. package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts +1 -9
  105. package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
  106. package/dist/esm/react-query/vendorsUpdateVendorDetails.js +1 -9
  107. package/dist/esm/react-query/vendorsUpdateVendorDetails.js.map +1 -1
  108. package/dist/esm/sdk/lookups.d.ts +0 -22
  109. package/dist/esm/sdk/lookups.d.ts.map +1 -1
  110. package/dist/esm/sdk/lookups.js +0 -25
  111. package/dist/esm/sdk/lookups.js.map +1 -1
  112. package/dist/esm/sdk/users.d.ts +0 -6
  113. package/dist/esm/sdk/users.d.ts.map +1 -1
  114. package/dist/esm/sdk/users.js +0 -6
  115. package/dist/esm/sdk/users.js.map +1 -1
  116. package/dist/esm/sdk/vendors.d.ts +1 -13
  117. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  118. package/dist/esm/sdk/vendors.js +1 -13
  119. package/dist/esm/sdk/vendors.js.map +1 -1
  120. package/jsr.json +1 -1
  121. package/package.json +1 -1
  122. package/src/__tests__/lookups.test.ts +0 -24
  123. package/src/__tests__/vendors.test.ts +1 -1
  124. package/src/__tests__/zones.test.ts +9 -11
  125. package/src/funcs/usersUpdateUser.ts +0 -6
  126. package/src/funcs/vendorsCreateVendor.ts +0 -4
  127. package/src/funcs/vendorsUpdateVendorDetails.ts +1 -9
  128. package/src/index.extras.ts +0 -8
  129. package/src/lib/config.ts +4 -4
  130. package/src/models/operations/createvendorcompany.ts +1 -7
  131. package/src/models/operations/index.ts +0 -1
  132. package/src/react-query/index.ts +0 -1
  133. package/src/react-query/usersUpdateUser.ts +0 -6
  134. package/src/react-query/vendorsCreateVendor.ts +0 -4
  135. package/src/react-query/vendorsUpdateVendorDetails.ts +1 -9
  136. package/src/sdk/lookups.ts +0 -33
  137. package/src/sdk/users.ts +0 -6
  138. package/src/sdk/vendors.ts +1 -13
  139. package/dist/commonjs/admin-funcs/dismissCommunication.d.ts +0 -3
  140. package/dist/commonjs/admin-funcs/dismissCommunication.d.ts.map +0 -1
  141. package/dist/commonjs/admin-funcs/dismissCommunication.js +0 -20
  142. package/dist/commonjs/admin-funcs/dismissCommunication.js.map +0 -1
  143. package/dist/commonjs/admin-funcs/listCommunications.d.ts +0 -3
  144. package/dist/commonjs/admin-funcs/listCommunications.d.ts.map +0 -1
  145. package/dist/commonjs/admin-funcs/listCommunications.js +0 -25
  146. package/dist/commonjs/admin-funcs/listCommunications.js.map +0 -1
  147. package/dist/commonjs/funcs/lookupsLookupPostalCode.d.ts +0 -35
  148. package/dist/commonjs/funcs/lookupsLookupPostalCode.d.ts.map +0 -1
  149. package/dist/commonjs/funcs/lookupsLookupPostalCode.js +0 -140
  150. package/dist/commonjs/funcs/lookupsLookupPostalCode.js.map +0 -1
  151. package/dist/commonjs/models/operations/lookuppostalcode.d.ts +0 -59
  152. package/dist/commonjs/models/operations/lookuppostalcode.d.ts.map +0 -1
  153. package/dist/commonjs/models/operations/lookuppostalcode.js +0 -81
  154. package/dist/commonjs/models/operations/lookuppostalcode.js.map +0 -1
  155. package/dist/commonjs/react-query/lookupsLookupPostalCode.core.d.ts +0 -16
  156. package/dist/commonjs/react-query/lookupsLookupPostalCode.core.d.ts.map +0 -1
  157. package/dist/commonjs/react-query/lookupsLookupPostalCode.core.js +0 -43
  158. package/dist/commonjs/react-query/lookupsLookupPostalCode.core.js.map +0 -1
  159. package/dist/commonjs/react-query/lookupsLookupPostalCode.d.ts +0 -71
  160. package/dist/commonjs/react-query/lookupsLookupPostalCode.d.ts.map +0 -1
  161. package/dist/commonjs/react-query/lookupsLookupPostalCode.js +0 -95
  162. package/dist/commonjs/react-query/lookupsLookupPostalCode.js.map +0 -1
  163. package/dist/esm/admin-funcs/dismissCommunication.d.ts +0 -3
  164. package/dist/esm/admin-funcs/dismissCommunication.d.ts.map +0 -1
  165. package/dist/esm/admin-funcs/dismissCommunication.js +0 -17
  166. package/dist/esm/admin-funcs/dismissCommunication.js.map +0 -1
  167. package/dist/esm/admin-funcs/listCommunications.d.ts +0 -3
  168. package/dist/esm/admin-funcs/listCommunications.d.ts.map +0 -1
  169. package/dist/esm/admin-funcs/listCommunications.js +0 -22
  170. package/dist/esm/admin-funcs/listCommunications.js.map +0 -1
  171. package/dist/esm/funcs/lookupsLookupPostalCode.d.ts +0 -35
  172. package/dist/esm/funcs/lookupsLookupPostalCode.d.ts.map +0 -1
  173. package/dist/esm/funcs/lookupsLookupPostalCode.js +0 -104
  174. package/dist/esm/funcs/lookupsLookupPostalCode.js.map +0 -1
  175. package/dist/esm/models/operations/lookuppostalcode.d.ts +0 -59
  176. package/dist/esm/models/operations/lookuppostalcode.d.ts.map +0 -1
  177. package/dist/esm/models/operations/lookuppostalcode.js +0 -43
  178. package/dist/esm/models/operations/lookuppostalcode.js.map +0 -1
  179. package/dist/esm/react-query/lookupsLookupPostalCode.core.d.ts +0 -16
  180. package/dist/esm/react-query/lookupsLookupPostalCode.core.d.ts.map +0 -1
  181. package/dist/esm/react-query/lookupsLookupPostalCode.core.js +0 -38
  182. package/dist/esm/react-query/lookupsLookupPostalCode.core.js.map +0 -1
  183. package/dist/esm/react-query/lookupsLookupPostalCode.d.ts +0 -71
  184. package/dist/esm/react-query/lookupsLookupPostalCode.d.ts.map +0 -1
  185. package/dist/esm/react-query/lookupsLookupPostalCode.js +0 -85
  186. package/dist/esm/react-query/lookupsLookupPostalCode.js.map +0 -1
  187. package/src/admin-funcs/dismissCommunication.ts +0 -20
  188. package/src/admin-funcs/listCommunications.ts +0 -29
  189. package/src/funcs/lookupsLookupPostalCode.ts +0 -193
  190. package/src/models/operations/lookuppostalcode.ts +0 -118
  191. package/src/react-query/lookupsLookupPostalCode.core.ts +0 -82
  192. package/src/react-query/lookupsLookupPostalCode.ts +0 -177
@@ -38,20 +38,17 @@ test("Zones List Or Search Security Zones", async () => {
38
38
  {
39
39
  facility: {
40
40
  contacts: {
41
- contact: {
42
- status: "Inactive",
43
- department: 123,
44
- },
41
+ contact: null,
45
42
  adminContact: {
46
- status: "Active",
43
+ status: "Inactive",
47
44
  department: 123,
48
45
  },
49
46
  techContact: {
50
- status: "Inactive",
47
+ status: "Active",
51
48
  department: 123,
52
49
  },
53
50
  greenSecurityCsm: {
54
- status: "Deleted",
51
+ status: "Active",
55
52
  department: 123,
56
53
  },
57
54
  accountManager: {
@@ -60,9 +57,9 @@ test("Zones List Or Search Security Zones", async () => {
60
57
  },
61
58
  },
62
59
  vendorGuestPolicy: {
63
- enabled: true,
60
+ enabled: false,
64
61
  vendorGuestLimitAndOr: "and",
65
- vendorGuestRequireEmail: true,
62
+ vendorGuestRequireEmail: false,
66
63
  },
67
64
  },
68
65
  },
@@ -85,8 +82,9 @@ test("Zones Security Zone Checkin", async () => {
85
82
  });
86
83
 
87
84
  const result = await greenSecurity.zones.securityZoneCheckin({
88
- qrCode: "<value>",
89
- zoneId: 118821,
85
+ longitude: 2457.03,
86
+ latitude: 5251.67,
87
+ zoneId: 67821,
90
88
  });
91
89
  expect(result).toBeDefined();
92
90
  expect(result).toEqual({});
@@ -37,12 +37,6 @@ import { Result } from "../types/fp.js";
37
37
  * Only submitted fields are applied — unrecognised fields are silently ignored.
38
38
  * Changing `email` automatically resets `bounced_email` to `false`.
39
39
  *
40
- * Submitting `zip`, `state`, or `country` cross-checks the postal code against the
41
- * resulting state/country (using the existing value for any of the three left out
42
- * of the request). A code that is not shaped like a real postal code, or that
43
- * provably belongs to a different state, is rejected with `422` naming the correct
44
- * state.
45
- *
46
40
  * Each subkey of `email_preferences` is independently optional; sending
47
41
  * `{ "email_preferences": { "send_weekly_summary_email": true } }` flips
48
42
  * only that flag and leaves the others unchanged.
@@ -36,10 +36,6 @@ import { Result } from "../types/fp.js";
36
36
  * All other callers must provide `company_id`. The caller must have access to the
37
37
  * specified company (verified via scoped access policy) and the `vendors:add` permission.
38
38
  *
39
- * `zip` is cross-checked against `state`: a code that is not shaped like a real postal
40
- * code, or that provably belongs to a different state, is rejected with `422` naming
41
- * the correct state.
42
- *
43
39
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
44
40
  */
45
41
  export function vendorsCreateVendor(
@@ -38,15 +38,7 @@ import * as types$ from "../types/primitives.js";
38
38
  * From `location` this endpoint reads only `timezone`, `address1`, `address2`,
39
39
  * `city`, `state`, `zip`, `phone`, `mobile_phone` and `fax`. The `address` and
40
40
  * `country` properties of the shared `UserLocation` schema are ignored here and
41
- * updating them is not supported. `state` accepts a US state or a Canadian
42
- * province — the vendor's country, set only at registration, is not editable
43
- * through this endpoint.
44
- *
45
- * Submitting `location.zip` or `location.state` cross-checks the postal code
46
- * against the resulting state (using the vendor's existing value for whichever
47
- * of the two is left out of the request). A code that is not shaped like a real
48
- * postal code, or that provably belongs to a different state, is rejected with
49
- * `422` naming the correct state.
41
+ * updating them is not supported.
50
42
  *
51
43
  * For `title`, the `supervisor` fields, and every `location` field except
52
44
  * `timezone`, the value sent is the value stored: omit a field to leave it
@@ -44,9 +44,6 @@ import { vendorGetPaymentForm } from "./admin-funcs/vendorGetPaymentForm.js";
44
44
  import { vendorGetSystemsRequiringSmartBadge } from "./admin-funcs/vendorGetSystemsRequiringSmartBadge.js";
45
45
  import { vendorGetCompanyCredentialsSummary } from "./admin-funcs/vendorGetCompanyCredentialsSummary.js";
46
46
 
47
- import { listCommunications } from "./admin-funcs/listCommunications.js";
48
- import { dismissCommunication } from "./admin-funcs/dismissCommunication.js";
49
-
50
47
  export const __internal = {
51
48
  getInternalCore,
52
49
  initializeInternalCore,
@@ -105,11 +102,6 @@ export const __internal = {
105
102
  notifyUploaded: notifyVendorCredentialFileUploaded
106
103
  },
107
104
 
108
- communications: {
109
- list: listCommunications,
110
- dismiss: dismissCommunication
111
- },
112
-
113
105
  companyManager: {
114
106
  getPaymentForm: companyManagerGetPaymentForm,
115
107
  },
package/src/lib/config.ts CHANGED
@@ -79,9 +79,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
79
79
 
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
- openapiDocVersion: "0.45.0",
83
- sdkVersion: "0.45.0-beta.10",
84
- genVersion: "2.934.1",
82
+ openapiDocVersion: "0.44.0",
83
+ sdkVersion: "0.45.0-beta.12",
84
+ genVersion: "2.935.1",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.45.0-beta.10 2.934.1 0.45.0 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.45.0-beta.12 2.935.1 0.44.0 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -28,13 +28,7 @@ export type CreateVendorCompanyRequestBody = {
28
28
  */
29
29
  state: components.State | null;
30
30
  /**
31
- * The vendor company zip. Cross-checked against `state` (always
32
- *
33
- * @remarks
34
- * treated as a US address on this endpoint) — a code that is not
35
- * shaped like a real US ZIP, or that provably belongs to a
36
- * different state, is rejected with `400` naming the correct
37
- * state.
31
+ * The vendor company zip
38
32
  */
39
33
  zip: string;
40
34
  /**
@@ -131,7 +131,6 @@ export * from "./listvendorscrubpackages.js";
131
131
  export * from "./listvendorscrubpurchases.js";
132
132
  export * from "./listvendortypes.js";
133
133
  export * from "./lookupcompanies.js";
134
- export * from "./lookuppostalcode.js";
135
134
  export * from "./magiclink.js";
136
135
  export * from "./makepayment.js";
137
136
  export * from "./password.js";
@@ -43,7 +43,6 @@ export * from "./invoicesListInvoices.js";
43
43
  export * from "./invoicesMakePayment.js";
44
44
  export * from "./invoicesUpdateInvoice.js";
45
45
  export * from "./lookupsListLookupSystems.js";
46
- export * from "./lookupsLookupPostalCode.js";
47
46
  export * from "./medicalProductsCreateDistributor.js";
48
47
  export * from "./medicalProductsCreateManufacturer.js";
49
48
  export * from "./medicalProductsCreateMedicalProduct.js";
@@ -56,12 +56,6 @@ export type UsersUpdateUserMutationError =
56
56
  * Only submitted fields are applied — unrecognised fields are silently ignored.
57
57
  * Changing `email` automatically resets `bounced_email` to `false`.
58
58
  *
59
- * Submitting `zip`, `state`, or `country` cross-checks the postal code against the
60
- * resulting state/country (using the existing value for any of the three left out
61
- * of the request). A code that is not shaped like a real postal code, or that
62
- * provably belongs to a different state, is rejected with `422` naming the correct
63
- * state.
64
- *
65
59
  * Each subkey of `email_preferences` is independently optional; sending
66
60
  * `{ "email_preferences": { "send_weekly_summary_email": true } }` flips
67
61
  * only that flag and leaves the others unchanged.
@@ -55,10 +55,6 @@ export type VendorsCreateVendorMutationError =
55
55
  * `company_id` is optional for company managers — it defaults to their own company.
56
56
  * All other callers must provide `company_id`. The caller must have access to the
57
57
  * specified company (verified via scoped access policy) and the `vendors:add` permission.
58
- *
59
- * `zip` is cross-checked against `state`: a code that is not shaped like a real postal
60
- * code, or that provably belongs to a different state, is rejected with `422` naming
61
- * the correct state.
62
58
  */
63
59
  export function useVendorsCreateVendorMutation(
64
60
  options?: MutationHookOptions<
@@ -56,15 +56,7 @@ export type VendorsUpdateVendorDetailsMutationError =
56
56
  * From `location` this endpoint reads only `timezone`, `address1`, `address2`,
57
57
  * `city`, `state`, `zip`, `phone`, `mobile_phone` and `fax`. The `address` and
58
58
  * `country` properties of the shared `UserLocation` schema are ignored here and
59
- * updating them is not supported. `state` accepts a US state or a Canadian
60
- * province — the vendor's country, set only at registration, is not editable
61
- * through this endpoint.
62
- *
63
- * Submitting `location.zip` or `location.state` cross-checks the postal code
64
- * against the resulting state (using the vendor's existing value for whichever
65
- * of the two is left out of the request). A code that is not shaped like a real
66
- * postal code, or that provably belongs to a different state, is rejected with
67
- * `422` naming the correct state.
59
+ * updating them is not supported.
68
60
  *
69
61
  * For `title`, the `supervisor` fields, and every `location` field except
70
62
  * `timezone`, the value sent is the value stored: omit a field to leave it
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import { lookupsListLookupSystems } from "../funcs/lookupsListLookupSystems.js";
6
- import { lookupsLookupPostalCode } from "../funcs/lookupsLookupPostalCode.js";
7
6
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
7
  import * as operations from "../models/operations/index.js";
9
8
  import { unwrapAsync } from "../types/fp.js";
@@ -32,36 +31,4 @@ export class Lookups extends ClientSDK {
32
31
  options,
33
32
  ));
34
33
  }
35
-
36
- /**
37
- * Check a postal code against a state and country
38
- *
39
- * @remarks
40
- * Cross-checks a postal code against a state/province and country, the same check
41
- * every write path that stores a US or Canadian address enforces server-side (e.g.
42
- * `PUT /users/{id}`, `PUT /vendors/{vendor_id_or_me}`). Useful for validating an
43
- * address before submitting it elsewhere.
44
- *
45
- * `status` is one of:
46
- * - `ok` — the postal code belongs to the given state/province.
47
- * - `invalid` — the postal code is not shaped like a real one for the given country.
48
- * - `mismatch` — the postal code is well-formed but belongs to a different state or
49
- * province. `expected_states` names the state(s) it actually maps to.
50
- * - `unknown` — nothing to check against (an unsupported country, or a postal code
51
- * absent from the US ZIP dataset). Treated as acceptable by every write path that
52
- * uses this check.
53
- *
54
- * Only the US and Canada have a real code-to-subdivision map; every other country
55
- * always returns `unknown`.
56
- */
57
- async lookupPostalCode(
58
- request: operations.LookupPostalCodeRequest,
59
- options?: RequestOptions,
60
- ): Promise<operations.LookupPostalCodeLookupPostalCodeOk> {
61
- return unwrapAsync(lookupsLookupPostalCode(
62
- this,
63
- request,
64
- options,
65
- ));
66
- }
67
34
  }
package/src/sdk/users.ts CHANGED
@@ -85,12 +85,6 @@ export class Users extends ClientSDK {
85
85
  * Only submitted fields are applied — unrecognised fields are silently ignored.
86
86
  * Changing `email` automatically resets `bounced_email` to `false`.
87
87
  *
88
- * Submitting `zip`, `state`, or `country` cross-checks the postal code against the
89
- * resulting state/country (using the existing value for any of the three left out
90
- * of the request). A code that is not shaped like a real postal code, or that
91
- * provably belongs to a different state, is rejected with `422` naming the correct
92
- * state.
93
- *
94
88
  * Each subkey of `email_preferences` is independently optional; sending
95
89
  * `{ "email_preferences": { "send_weekly_summary_email": true } }` flips
96
90
  * only that flag and leaves the others unchanged.
@@ -132,10 +132,6 @@ export class Vendors extends ClientSDK {
132
132
  * `company_id` is optional for company managers — it defaults to their own company.
133
133
  * All other callers must provide `company_id`. The caller must have access to the
134
134
  * specified company (verified via scoped access policy) and the `vendors:add` permission.
135
- *
136
- * `zip` is cross-checked against `state`: a code that is not shaped like a real postal
137
- * code, or that provably belongs to a different state, is rejected with `422` naming
138
- * the correct state.
139
135
  */
140
136
  async createVendor(
141
137
  request: operations.CreateVendorRequestBody,
@@ -884,15 +880,7 @@ export class Vendors extends ClientSDK {
884
880
  * From `location` this endpoint reads only `timezone`, `address1`, `address2`,
885
881
  * `city`, `state`, `zip`, `phone`, `mobile_phone` and `fax`. The `address` and
886
882
  * `country` properties of the shared `UserLocation` schema are ignored here and
887
- * updating them is not supported. `state` accepts a US state or a Canadian
888
- * province — the vendor's country, set only at registration, is not editable
889
- * through this endpoint.
890
- *
891
- * Submitting `location.zip` or `location.state` cross-checks the postal code
892
- * against the resulting state (using the vendor's existing value for whichever
893
- * of the two is left out of the request). A code that is not shaped like a real
894
- * postal code, or that provably belongs to a different state, is rejected with
895
- * `422` naming the correct state.
883
+ * updating them is not supported.
896
884
  *
897
885
  * For `title`, the `supervisor` fields, and every `location` field except
898
886
  * `timezone`, the value sent is the value stored: omit a field to leave it
@@ -1,3 +0,0 @@
1
- import { internalApiResult } from "./doAdmin.js";
2
- export declare function dismissCommunication(communicationId: number): internalApiResult;
3
- //# sourceMappingURL=dismissCommunication.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dismissCommunication.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/dismissCommunication.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAa1D,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,MAAM,GAAG,iBAAiB,CAK/E"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dismissCommunication = dismissCommunication;
4
- const async_js_1 = require("../types/async.js");
5
- const doAdmin_js_1 = require("./doAdmin.js");
6
- // Records that the caller dismissed a communication (GSSD-7336).
7
- //
8
- // Internal for the same reason as listCommunications: it only means anything to our own portal.
9
- //
10
- // The durable half of a two-layer dismissal — the client suppresses locally straight away so a
11
- // banner does not flash back while this is in flight, and this row is what makes the timed
12
- // rules ("after a week", "after a month") hold on a second device. Whether a past dismissal
13
- // still suppresses anything is decided server-side on the next list call.
14
- //
15
- // The server re-checks the caller's audience before writing, so dismissing a communication that
16
- // was never aimed at you answers 404 rather than creating a row.
17
- function dismissCommunication(communicationId) {
18
- return new async_js_1.APIPromise((0, doAdmin_js_1.$doPost)(`/communications/${communicationId}/dismiss`, {}));
19
- }
20
- //# sourceMappingURL=dismissCommunication.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dismissCommunication.js","sourceRoot":"","sources":["../../../src/admin-funcs/dismissCommunication.ts"],"names":[],"mappings":";;AAcA,oDAKC;AAnBD,gDAA+C;AAC/C,6CAA0D;AAE1D,iEAAiE;AACjE,EAAE;AACF,gGAAgG;AAChG,EAAE;AACF,+FAA+F;AAC/F,2FAA2F;AAC3F,4FAA4F;AAC5F,0EAA0E;AAC1E,EAAE;AACF,gGAAgG;AAChG,iEAAiE;AACjE,SAAgB,oBAAoB,CAAC,eAAuB;IAC1D,OAAO,IAAI,qBAAU,CAAC,IAAA,oBAAO,EAC3B,mBAAmB,eAAe,UAAU,EAC5C,EAAE,CACH,CAAC,CAAC;AACL,CAAC"}
@@ -1,3 +0,0 @@
1
- import { internalApiResult } from "./doAdmin.js";
2
- export declare function listCommunications(pageKey?: string | null, itemsPerPage?: number): internalApiResult;
3
- //# sourceMappingURL=listCommunications.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listCommunications.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/listCommunications.ts"],"names":[],"mappings":"AACA,OAAO,EAAmC,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAclF,wBAAgB,kBAAkB,CAChC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,EACvB,YAAY,GAAE,MAAY,GACzB,iBAAiB,CAUnB"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listCommunications = listCommunications;
4
- const async_js_1 = require("../types/async.js");
5
- const doAdmin_js_1 = require("./doAdmin.js");
6
- // The banners, pop-ups and in-app notifications aimed at the signed-in user (GSSD-7336).
7
- //
8
- // Internal rather than part of the public spec: "the adverts for whoever is holding this token"
9
- // is only meaningful to our own portal, and a third-party SDK consumer has no use for it. See
10
- // the public/app-only split in AGENTS.md.
11
- //
12
- // The response is already filtered and ordered by the server — audience matched per caller,
13
- // page matched, anything still suppressed by a dismissal removed, and sorted by priority — so a
14
- // caller renders the list as it arrives.
15
- //
16
- // pageKey narrows to the communications configured for one page. Omitting it returns every
17
- // communication for the user, which is what a caller that does its own page matching wants.
18
- function listCommunications(pageKey, itemsPerPage = 100) {
19
- const query = { items_per_page: itemsPerPage };
20
- if (pageKey) {
21
- query["page_key"] = pageKey;
22
- }
23
- return new async_js_1.APIPromise((0, doAdmin_js_1.$doGetSingle)(`/communications?${(0, doAdmin_js_1.hashToQueryString)(query)}`, {}));
24
- }
25
- //# sourceMappingURL=listCommunications.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listCommunications.js","sourceRoot":"","sources":["../../../src/admin-funcs/listCommunications.ts"],"names":[],"mappings":";;AAeA,gDAaC;AA5BD,gDAA+C;AAC/C,6CAAkF;AAElF,yFAAyF;AACzF,EAAE;AACF,gGAAgG;AAChG,8FAA8F;AAC9F,0CAA0C;AAC1C,EAAE;AACF,4FAA4F;AAC5F,gGAAgG;AAChG,yCAAyC;AACzC,EAAE;AACF,2FAA2F;AAC3F,4FAA4F;AAC5F,SAAgB,kBAAkB,CAChC,OAAuB,EACvB,eAAuB,GAAG;IAE1B,MAAM,KAAK,GAAoC,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC;IAChF,IAAI,OAAO,EAAE,CAAC;QACZ,KAAK,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;IAC9B,CAAC;IAED,OAAO,IAAI,qBAAU,CAAC,IAAA,yBAAY,EAChC,mBAAmB,IAAA,8BAAiB,EAAC,KAAK,CAAC,EAAE,EAC7C,EAAE,CACH,CAAC,CAAC;AACL,CAAC"}
@@ -1,35 +0,0 @@
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
- * Check a postal code against a state and country
13
- *
14
- * @remarks
15
- * Cross-checks a postal code against a state/province and country, the same check
16
- * every write path that stores a US or Canadian address enforces server-side (e.g.
17
- * `PUT /users/{id}`, `PUT /vendors/{vendor_id_or_me}`). Useful for validating an
18
- * address before submitting it elsewhere.
19
- *
20
- * `status` is one of:
21
- * - `ok` — the postal code belongs to the given state/province.
22
- * - `invalid` — the postal code is not shaped like a real one for the given country.
23
- * - `mismatch` — the postal code is well-formed but belongs to a different state or
24
- * province. `expected_states` names the state(s) it actually maps to.
25
- * - `unknown` — nothing to check against (an unsupported country, or a postal code
26
- * absent from the US ZIP dataset). Treated as acceptable by every write path that
27
- * uses this check.
28
- *
29
- * Only the US and Canada have a real code-to-subdivision map; every other country
30
- * always returns `unknown`.
31
- *
32
- * If set, this operation will use {@link Security.bearerJwt} from the global security.
33
- */
34
- export declare function lookupsLookupPostalCode(client: GreenSecurityCore, request: operations.LookupPostalCodeRequest, options?: RequestOptions): APIPromise<Result<operations.LookupPostalCodeLookupPostalCodeOk, errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
35
- //# sourceMappingURL=lookupsLookupPostalCode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lookupsLookupPostalCode.d.ts","sourceRoot":"","sources":["../../../src/funcs/lookupsLookupPostalCode.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAM/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;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kCAAkC,EAC3C,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -1,140 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.lookupsLookupPostalCode = lookupsLookupPostalCode;
40
- const encodings_js_1 = require("../lib/encodings.js");
41
- const http_js_1 = require("../lib/http.js");
42
- const M = __importStar(require("../lib/matchers.js"));
43
- const primitives_js_1 = require("../lib/primitives.js");
44
- const schemas_js_1 = require("../lib/schemas.js");
45
- const security_js_1 = require("../lib/security.js");
46
- const url_js_1 = require("../lib/url.js");
47
- const errors = __importStar(require("../models/errors/index.js"));
48
- const operations = __importStar(require("../models/operations/index.js"));
49
- const async_js_1 = require("../types/async.js");
50
- /**
51
- * Check a postal code against a state and country
52
- *
53
- * @remarks
54
- * Cross-checks a postal code against a state/province and country, the same check
55
- * every write path that stores a US or Canadian address enforces server-side (e.g.
56
- * `PUT /users/{id}`, `PUT /vendors/{vendor_id_or_me}`). Useful for validating an
57
- * address before submitting it elsewhere.
58
- *
59
- * `status` is one of:
60
- * - `ok` — the postal code belongs to the given state/province.
61
- * - `invalid` — the postal code is not shaped like a real one for the given country.
62
- * - `mismatch` — the postal code is well-formed but belongs to a different state or
63
- * province. `expected_states` names the state(s) it actually maps to.
64
- * - `unknown` — nothing to check against (an unsupported country, or a postal code
65
- * absent from the US ZIP dataset). Treated as acceptable by every write path that
66
- * uses this check.
67
- *
68
- * Only the US and Canada have a real code-to-subdivision map; every other country
69
- * always returns `unknown`.
70
- *
71
- * If set, this operation will use {@link Security.bearerJwt} from the global security.
72
- */
73
- function lookupsLookupPostalCode(client, request, options) {
74
- return new async_js_1.APIPromise($do(client, request, options));
75
- }
76
- async function $do(client, request, options) {
77
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.LookupPostalCodeRequest$outboundSchema.parse(value), "Input validation failed");
78
- if (!parsed.ok) {
79
- return [parsed, { status: "invalid" }];
80
- }
81
- const payload = parsed.value;
82
- const body = null;
83
- const path = (0, url_js_1.pathToFunc)("/lookups/postal-code")();
84
- const query = (0, encodings_js_1.encodeFormQuery)({
85
- "country": payload.country,
86
- "postal_code": payload.postal_code,
87
- "state": payload.state,
88
- });
89
- const headers = new Headers((0, primitives_js_1.compactMap)({
90
- Accept: "application/json",
91
- }));
92
- const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
93
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [1]);
94
- const context = {
95
- options: client._options,
96
- baseURL: options?.serverURL ?? client._baseURL ?? "",
97
- operationID: "lookupPostalCode",
98
- oAuth2Scopes: null,
99
- resolvedSecurity: requestSecurity,
100
- securitySource: client._options.security,
101
- retryConfig: options?.retries
102
- || client._options.retryConfig
103
- || { strategy: "none" },
104
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
105
- };
106
- const requestRes = client._createRequest(context, {
107
- security: requestSecurity,
108
- method: "GET",
109
- baseURL: options?.serverURL,
110
- path: path,
111
- headers: headers,
112
- query: query,
113
- body: body,
114
- userAgent: client._options.userAgent,
115
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
116
- }, options);
117
- if (!requestRes.ok) {
118
- return [requestRes, { status: "invalid" }];
119
- }
120
- const req = requestRes.value;
121
- const doResult = await client._do(req, {
122
- context,
123
- isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
124
- retryConfig: context.retryConfig,
125
- retryCodes: context.retryCodes,
126
- });
127
- if (!doResult.ok) {
128
- return [doResult, { status: "request-error", request: req }];
129
- }
130
- const response = doResult.value;
131
- const responseFields = {
132
- HttpMeta: { Response: response, Request: req },
133
- };
134
- const [result] = await M.match(M.json(200, operations.LookupPostalCodeLookupPostalCodeOk$inboundSchema), M.jsonErr([400, 401, 422], errors.ApiErrorResponse$inboundSchema), M.fail("4XX"), M.fail([500, "5XX"]))(response, req, { extraFields: responseFields });
135
- if (!result.ok) {
136
- return [result, { status: "complete", request: req, response }];
137
- }
138
- return [result, { status: "complete", request: req, response }];
139
- }
140
- //# sourceMappingURL=lookupsLookupPostalCode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lookupsLookupPostalCode.js","sourceRoot":"","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E,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"}
@@ -1,59 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { OpenEnum } from "../../types/enums.js";
3
- import { Result as SafeParseResult } from "../../types/fp.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export type LookupPostalCodeRequest = {
6
- /**
7
- * The zip / postal code to check.
8
- */
9
- postalCode: string;
10
- /**
11
- * The state or province, as a code or full name, entered alongside the postal code.
12
- */
13
- state: string;
14
- /**
15
- * The country entered alongside the postal code (e.g. US, CA).
16
- */
17
- country: string;
18
- };
19
- export declare const LookupPostalCodeStatus: {
20
- readonly Ok: "ok";
21
- readonly Invalid: "invalid";
22
- readonly Mismatch: "mismatch";
23
- readonly Unknown: "unknown";
24
- };
25
- export type LookupPostalCodeStatus = OpenEnum<typeof LookupPostalCodeStatus>;
26
- /**
27
- * The request was successful, and the server has returned the check result in the response body.
28
- */
29
- export type LookupPostalCodeLookupPostalCodeOk = {
30
- status: LookupPostalCodeStatus;
31
- /**
32
- * The state(s)/province(s) the postal code actually belongs to. Populated whenever the
33
- *
34
- * @remarks
35
- * postal code is well-formed and a state/province was checked against it — so this is
36
- * non-empty for `ok` (it names the state that matched) as well as for `mismatch`, and
37
- * empty for `invalid` and `unknown`.
38
- */
39
- expectedStates: Array<string>;
40
- /**
41
- * A human-readable explanation of the problem. `null` unless `status` is `invalid` or `mismatch`.
42
- */
43
- error: string | null;
44
- };
45
- /** @internal */
46
- export type LookupPostalCodeRequest$Outbound = {
47
- postal_code: string;
48
- state: string;
49
- country: string;
50
- };
51
- /** @internal */
52
- export declare const LookupPostalCodeRequest$outboundSchema: z.ZodType<LookupPostalCodeRequest$Outbound, z.ZodTypeDef, LookupPostalCodeRequest>;
53
- export declare function lookupPostalCodeRequestToJSON(lookupPostalCodeRequest: LookupPostalCodeRequest): string;
54
- /** @internal */
55
- export declare const LookupPostalCodeStatus$inboundSchema: z.ZodType<LookupPostalCodeStatus, z.ZodTypeDef, unknown>;
56
- /** @internal */
57
- export declare const LookupPostalCodeLookupPostalCodeOk$inboundSchema: z.ZodType<LookupPostalCodeLookupPostalCodeOk, z.ZodTypeDef, unknown>;
58
- export declare function lookupPostalCodeLookupPostalCodeOkFromJSON(jsonString: string): SafeParseResult<LookupPostalCodeLookupPostalCodeOk, SDKValidationError>;
59
- //# sourceMappingURL=lookuppostalcode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lookuppostalcode.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/lookuppostalcode.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,MAAM,EAAE,sBAAsB,CAAC;IAC/B;;;;;;;OAOG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,MA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