@greensecurity/javascript-sdk 0.44.0-beta.40 → 0.44.0-beta.41
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/dist/commonjs/__tests__/companies.test.js +1 -0
- package/dist/commonjs/__tests__/companies.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +1 -0
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +17 -14
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/usersGetCurrentUser.d.ts +1 -1
- package/dist/commonjs/funcs/usersGetCurrentUser.js +1 -1
- package/dist/commonjs/funcs/usersGetUserById.d.ts +1 -1
- package/dist/commonjs/funcs/usersGetUserById.js +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredits.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredits.js +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/http.d.ts +1 -1
- package/dist/commonjs/lib/http.d.ts.map +1 -1
- package/dist/commonjs/lib/http.js +1 -1
- package/dist/commonjs/lib/http.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +5 -4
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +6 -7
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/components/credit.d.ts +30 -4
- package/dist/commonjs/models/components/credit.d.ts.map +1 -1
- package/dist/commonjs/models/components/credit.js +33 -6
- package/dist/commonjs/models/components/credit.js.map +1 -1
- package/dist/commonjs/models/components/creditentitysummary.d.ts +17 -0
- package/dist/commonjs/models/components/creditentitysummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/creditentitysummary.js +52 -0
- package/dist/commonjs/models/components/creditentitysummary.js.map +1 -0
- package/dist/commonjs/models/components/emailpreferences.d.ts +9 -0
- package/dist/commonjs/models/components/emailpreferences.d.ts.map +1 -1
- package/dist/commonjs/models/components/emailpreferences.js +4 -0
- package/dist/commonjs/models/components/emailpreferences.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/userdetails.d.ts +4 -0
- package/dist/commonjs/models/components/userdetails.d.ts.map +1 -1
- package/dist/commonjs/models/components/userdetails.js.map +1 -1
- package/dist/commonjs/models/components/vendor.d.ts +4 -0
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +2 -0
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/components/vendorpaymentresponsibilityassignments.d.ts +0 -14
- package/dist/commonjs/models/components/vendorpaymentresponsibilityassignments.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorpaymentresponsibilityassignments.js +0 -4
- package/dist/commonjs/models/components/vendorpaymentresponsibilityassignments.js.map +1 -1
- package/dist/commonjs/models/operations/listcompanycredits.d.ts +6 -41
- package/dist/commonjs/models/operations/listcompanycredits.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcompanycredits.js +6 -33
- package/dist/commonjs/models/operations/listcompanycredits.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredits.d.ts +4 -0
- package/dist/commonjs/models/operations/listvendorcredits.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredits.js +6 -0
- package/dist/commonjs/models/operations/listvendorcredits.js.map +1 -1
- package/dist/commonjs/models/operations/updateuser.d.ts +4 -0
- package/dist/commonjs/models/operations/updateuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateuser.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorpaymentresponsibility.d.ts +0 -10
- package/dist/commonjs/models/operations/updatevendorpaymentresponsibility.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendorpaymentresponsibility.js +0 -4
- package/dist/commonjs/models/operations/updatevendorpaymentresponsibility.js.map +1 -1
- package/dist/commonjs/react-query/usersGetCurrentUser.d.ts +2 -2
- package/dist/commonjs/react-query/usersGetCurrentUser.js +2 -2
- package/dist/commonjs/react-query/usersGetUserById.d.ts +2 -2
- package/dist/commonjs/react-query/usersGetUserById.js +2 -2
- package/dist/commonjs/react-query/vendorsListVendorCredits.d.ts +4 -4
- package/dist/commonjs/react-query/vendorsListVendorCredits.js +4 -4
- package/dist/commonjs/sdk/users.d.ts +2 -2
- package/dist/commonjs/sdk/users.js +2 -2
- package/dist/commonjs/sdk/vendors.d.ts +1 -1
- package/dist/commonjs/sdk/vendors.js +1 -1
- package/dist/esm/__tests__/companies.test.js +1 -0
- package/dist/esm/__tests__/companies.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -0
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +17 -14
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/usersGetCurrentUser.d.ts +1 -1
- package/dist/esm/funcs/usersGetCurrentUser.js +1 -1
- package/dist/esm/funcs/usersGetUserById.d.ts +1 -1
- package/dist/esm/funcs/usersGetUserById.js +1 -1
- package/dist/esm/funcs/vendorsListVendorCredits.d.ts +1 -1
- package/dist/esm/funcs/vendorsListVendorCredits.js +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/http.d.ts +1 -1
- package/dist/esm/lib/http.d.ts.map +1 -1
- package/dist/esm/lib/http.js +1 -1
- package/dist/esm/lib/http.js.map +1 -1
- package/dist/esm/lib/security.d.ts +5 -4
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +4 -5
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/components/credit.d.ts +30 -4
- package/dist/esm/models/components/credit.d.ts.map +1 -1
- package/dist/esm/models/components/credit.js +30 -5
- package/dist/esm/models/components/credit.js.map +1 -1
- package/dist/esm/models/components/creditentitysummary.d.ts +17 -0
- package/dist/esm/models/components/creditentitysummary.d.ts.map +1 -0
- package/dist/esm/models/components/creditentitysummary.js +15 -0
- package/dist/esm/models/components/creditentitysummary.js.map +1 -0
- package/dist/esm/models/components/emailpreferences.d.ts +9 -0
- package/dist/esm/models/components/emailpreferences.d.ts.map +1 -1
- package/dist/esm/models/components/emailpreferences.js +4 -0
- package/dist/esm/models/components/emailpreferences.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/userdetails.d.ts +4 -0
- package/dist/esm/models/components/userdetails.d.ts.map +1 -1
- package/dist/esm/models/components/userdetails.js.map +1 -1
- package/dist/esm/models/components/vendor.d.ts +4 -0
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +2 -0
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/components/vendorpaymentresponsibilityassignments.d.ts +0 -14
- package/dist/esm/models/components/vendorpaymentresponsibilityassignments.d.ts.map +1 -1
- package/dist/esm/models/components/vendorpaymentresponsibilityassignments.js +0 -4
- package/dist/esm/models/components/vendorpaymentresponsibilityassignments.js.map +1 -1
- package/dist/esm/models/operations/listcompanycredits.d.ts +6 -41
- package/dist/esm/models/operations/listcompanycredits.d.ts.map +1 -1
- package/dist/esm/models/operations/listcompanycredits.js +5 -31
- package/dist/esm/models/operations/listcompanycredits.js.map +1 -1
- package/dist/esm/models/operations/listvendorcredits.d.ts +4 -0
- package/dist/esm/models/operations/listvendorcredits.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorcredits.js +6 -0
- package/dist/esm/models/operations/listvendorcredits.js.map +1 -1
- package/dist/esm/models/operations/updateuser.d.ts +4 -0
- package/dist/esm/models/operations/updateuser.d.ts.map +1 -1
- package/dist/esm/models/operations/updateuser.js.map +1 -1
- package/dist/esm/models/operations/updatevendorpaymentresponsibility.d.ts +0 -10
- package/dist/esm/models/operations/updatevendorpaymentresponsibility.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendorpaymentresponsibility.js +0 -4
- package/dist/esm/models/operations/updatevendorpaymentresponsibility.js.map +1 -1
- package/dist/esm/react-query/usersGetCurrentUser.d.ts +2 -2
- package/dist/esm/react-query/usersGetCurrentUser.js +2 -2
- package/dist/esm/react-query/usersGetUserById.d.ts +2 -2
- package/dist/esm/react-query/usersGetUserById.js +2 -2
- package/dist/esm/react-query/vendorsListVendorCredits.d.ts +4 -4
- package/dist/esm/react-query/vendorsListVendorCredits.js +4 -4
- package/dist/esm/sdk/users.d.ts +2 -2
- package/dist/esm/sdk/users.js +2 -2
- package/dist/esm/sdk/vendors.d.ts +1 -1
- package/dist/esm/sdk/vendors.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/companies.test.ts +1 -0
- package/src/__tests__/vendors.test.ts +1 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +17 -14
- package/src/funcs/usersGetCurrentUser.ts +1 -1
- package/src/funcs/usersGetUserById.ts +1 -1
- package/src/funcs/vendorsListVendorCredits.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/http.ts +3 -1
- package/src/lib/security.ts +10 -5
- package/src/models/components/credit.ts +84 -9
- package/src/models/components/creditentitysummary.ts +45 -0
- package/src/models/components/emailpreferences.ts +13 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/userdetails.ts +4 -0
- package/src/models/components/vendor.ts +6 -0
- package/src/models/components/vendorpaymentresponsibilityassignments.ts +0 -18
- package/src/models/operations/listcompanycredits.ts +12 -73
- package/src/models/operations/listvendorcredits.ts +10 -0
- package/src/models/operations/updateuser.ts +4 -0
- package/src/models/operations/updatevendorpaymentresponsibility.ts +0 -14
- package/src/react-query/usersGetCurrentUser.ts +2 -2
- package/src/react-query/usersGetUserById.ts +2 -2
- package/src/react-query/vendorsListVendorCredits.ts +4 -4
- package/src/sdk/users.ts +2 -2
- package/src/sdk/vendors.ts +1 -1
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as openEnums from "../../types/enums.js";
|
|
8
7
|
import * as types from "../../types/primitives.js";
|
|
9
8
|
import * as components from "../components/index.js";
|
|
10
9
|
/**
|
|
@@ -18,11 +17,6 @@ export const ListCompanyCreditsQueryParamSort = {
|
|
|
18
17
|
FromCompanyId: "from_company_id",
|
|
19
18
|
ToCompanyId: "to_company_id",
|
|
20
19
|
};
|
|
21
|
-
export const Action = {
|
|
22
|
-
Credit: "credit",
|
|
23
|
-
Debit: "debit",
|
|
24
|
-
Transfer: "transfer",
|
|
25
|
-
};
|
|
26
20
|
/** @internal */
|
|
27
21
|
export const ListCompanyCreditsQueryParamSort$outboundSchema = z.nativeEnum(ListCompanyCreditsQueryParamSort);
|
|
28
22
|
/** @internal */
|
|
@@ -42,35 +36,15 @@ export function listCompanyCreditsRequestToJSON(listCompanyCreditsRequest) {
|
|
|
42
36
|
return JSON.stringify(ListCompanyCreditsRequest$outboundSchema.parse(listCompanyCreditsRequest));
|
|
43
37
|
}
|
|
44
38
|
/** @internal */
|
|
45
|
-
export const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
date: z.nullable(types.string()).optional(),
|
|
50
|
-
action: types.optional(Action$inboundSchema),
|
|
51
|
-
amount: types.optional(types.number()),
|
|
52
|
-
balance: types.optional(types.number()),
|
|
53
|
-
from: z.nullable(types.string()).optional(),
|
|
54
|
-
to: z.nullable(types.string()).optional(),
|
|
55
|
-
invoice_number: z.nullable(types.string()).optional(),
|
|
56
|
-
entity: types.optional(z.record(z.any())),
|
|
57
|
-
from_entity: types.optional(z.record(z.any())),
|
|
58
|
-
to_entity: types.optional(z.record(z.any())),
|
|
39
|
+
export const ListCompanyCreditsListCompanyCreditsOk$inboundSchema = z.object({
|
|
40
|
+
pager: components.Pager$inboundSchema,
|
|
41
|
+
items: z.array(components.Credit$inboundSchema),
|
|
42
|
+
credit_balance: types.number(),
|
|
59
43
|
}).transform((v) => {
|
|
60
44
|
return remap$(v, {
|
|
61
|
-
"
|
|
62
|
-
"from_entity": "fromEntity",
|
|
63
|
-
"to_entity": "toEntity",
|
|
45
|
+
"credit_balance": "creditBalance",
|
|
64
46
|
});
|
|
65
47
|
});
|
|
66
|
-
export function listCompanyCreditsItemsFromJSON(jsonString) {
|
|
67
|
-
return safeParse(jsonString, (x) => ListCompanyCreditsItems$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCompanyCreditsItems' from JSON`);
|
|
68
|
-
}
|
|
69
|
-
/** @internal */
|
|
70
|
-
export const ListCompanyCreditsListCompanyCreditsOk$inboundSchema = z.object({
|
|
71
|
-
pager: components.Pager$inboundSchema,
|
|
72
|
-
items: z.array(z.lazy(() => ListCompanyCreditsItems$inboundSchema)),
|
|
73
|
-
});
|
|
74
48
|
export function listCompanyCreditsListCompanyCreditsOkFromJSON(jsonString) {
|
|
75
49
|
return safeParse(jsonString, (x) => ListCompanyCreditsListCompanyCreditsOk$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCompanyCreditsListCompanyCreditsOk' from JSON`);
|
|
76
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listcompanycredits.js","sourceRoot":"","sources":["../../../../src/models/operations/listcompanycredits.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC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,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -39,6 +39,10 @@ export type ListVendorCreditsListVendorCreditsOk = {
|
|
|
39
39
|
* Pagination information for a pageable list
|
|
40
40
|
*/
|
|
41
41
|
pager: components.Pager;
|
|
42
|
+
/**
|
|
43
|
+
* Current overall balance of the vendor's account (not tied to a specific transaction).
|
|
44
|
+
*/
|
|
45
|
+
creditBalance: number;
|
|
42
46
|
};
|
|
43
47
|
export type ListVendorCreditsResponse = {
|
|
44
48
|
result: ListVendorCreditsListVendorCreditsOk;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listvendorcredits.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listvendorcredits.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"listvendorcredits.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listvendorcredits.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,GAAG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gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import * as types from "../../types/primitives.js";
|
|
7
8
|
import * as components from "../components/index.js";
|
|
8
9
|
/** @internal */
|
|
9
10
|
export const ListVendorCreditsRequest$outboundSchema = z.object({
|
|
@@ -25,6 +26,11 @@ export function listVendorCreditsRequestToJSON(listVendorCreditsRequest) {
|
|
|
25
26
|
export const ListVendorCreditsListVendorCreditsOk$inboundSchema = z.object({
|
|
26
27
|
items: z.array(components.Credit$inboundSchema),
|
|
27
28
|
pager: components.Pager$inboundSchema,
|
|
29
|
+
credit_balance: types.number(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"credit_balance": "creditBalance",
|
|
33
|
+
});
|
|
28
34
|
});
|
|
29
35
|
export function listVendorCreditsListVendorCreditsOkFromJSON(jsonString) {
|
|
30
36
|
return safeParse(jsonString, (x) => ListVendorCreditsListVendorCreditsOk$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListVendorCreditsListVendorCreditsOk' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listvendorcredits.js","sourceRoot":"","sources":["../../../../src/models/operations/listvendorcredits.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,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DAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAC/C,KAAK,EAAE,UAAU,CAAC,mBAAmB;IACrC,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,eAAe;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,kDAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kDAAkD,CAAC;CACzE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -31,6 +31,10 @@ export type UpdateUserRequestBody = {
|
|
|
31
31
|
* Replaces the legacy vendor-side fields `email_recepient` and
|
|
32
32
|
* `send_weekly_summary_email`, which remain on the Vendor object during
|
|
33
33
|
* the migration window but are deprecated.
|
|
34
|
+
*
|
|
35
|
+
* `receive_vendor_emails` is company-manager-only and is stored on the
|
|
36
|
+
* CompanyManager record rather than the User, but is exposed here
|
|
37
|
+
* alongside the other preferences for a single read/write shape.
|
|
34
38
|
*/
|
|
35
39
|
emailPreferences?: components.EmailPreferences | undefined;
|
|
36
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateuser.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updateuser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG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MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,CAAC,yBAAyB;CAC3C,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -7,14 +7,6 @@ export type UpdateVendorPaymentResponsibilityRequestBody = {
|
|
|
7
7
|
* User ID responsible for Credentialing Subscription & Expediting payments. Pass `null` to reset responsibility to the vendor.
|
|
8
8
|
*/
|
|
9
9
|
credentialingSubscriptionUserId?: number | null | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* User ID responsible for Scrubs Subscription payments. Pass `null` to reset responsibility to the vendor.
|
|
12
|
-
*/
|
|
13
|
-
scrubsSubscriptionUserId?: number | null | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* User ID responsible for Scrub Credits payments. Pass `null` to reset responsibility to the vendor.
|
|
16
|
-
*/
|
|
17
|
-
scrubCreditsUserId?: number | null | undefined;
|
|
18
10
|
/**
|
|
19
11
|
* User ID responsible for Initial Hard Badge payments. Pass `null` to reset responsibility to the vendor.
|
|
20
12
|
*/
|
|
@@ -51,8 +43,6 @@ export type UpdateVendorPaymentResponsibilityUpdateVendorPaymentResponsibilityOk
|
|
|
51
43
|
/** @internal */
|
|
52
44
|
export type UpdateVendorPaymentResponsibilityRequestBody$Outbound = {
|
|
53
45
|
credentialing_subscription_user_id?: number | null | undefined;
|
|
54
|
-
scrubs_subscription_user_id?: number | null | undefined;
|
|
55
|
-
scrub_credits_user_id?: number | null | undefined;
|
|
56
46
|
hard_badge_initial_user_id?: number | null | undefined;
|
|
57
47
|
hard_badge_extra_user_id?: number | null | undefined;
|
|
58
48
|
other_invoices_user_id?: number | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatevendorpaymentresponsibility.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updatevendorpaymentresponsibility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4CAA4C,GAAG;IACzD;;OAEG;IACH,+BAA+B,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5D;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"updatevendorpaymentresponsibility.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updatevendorpaymentresponsibility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4CAA4C,GAAG;IACzD;;OAEG;IACH,+BAA+B,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5D;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnD;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,4CAA4C,CAAC;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+9,12 @@ import * as components from "../components/index.js";
|
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const UpdateVendorPaymentResponsibilityRequestBody$outboundSchema = z.object({
|
|
11
11
|
credentialingSubscriptionUserId: z.nullable(z.number().int()).optional(),
|
|
12
|
-
scrubsSubscriptionUserId: z.nullable(z.number().int()).optional(),
|
|
13
|
-
scrubCreditsUserId: z.nullable(z.number().int()).optional(),
|
|
14
12
|
hardBadgeInitialUserId: z.nullable(z.number().int()).optional(),
|
|
15
13
|
hardBadgeExtraUserId: z.nullable(z.number().int()).optional(),
|
|
16
14
|
otherInvoicesUserId: z.nullable(z.number().int()).optional(),
|
|
17
15
|
}).transform((v) => {
|
|
18
16
|
return remap$(v, {
|
|
19
17
|
credentialingSubscriptionUserId: "credentialing_subscription_user_id",
|
|
20
|
-
scrubsSubscriptionUserId: "scrubs_subscription_user_id",
|
|
21
|
-
scrubCreditsUserId: "scrub_credits_user_id",
|
|
22
18
|
hardBadgeInitialUserId: "hard_badge_initial_user_id",
|
|
23
19
|
hardBadgeExtraUserId: "hard_badge_extra_user_id",
|
|
24
20
|
otherInvoicesUserId: "other_invoices_user_id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatevendorpaymentresponsibility.js","sourceRoot":"","sources":["../../../../src/models/operations/updatevendorpaymentresponsibility.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"updatevendorpaymentresponsibility.js","sourceRoot":"","sources":["../../../../src/models/operations/updatevendorpaymentresponsibility.ts"],"names":[],"mappings":"AAAA;;GAEG;AA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,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACvB,2DAA2D,CAC5D;CACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,8CAA8C,CAC5D,wCAC0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,uDAAuD,CAAC,KAAK,CAC3D,wCAAwC,CACzC,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,kFAAkF,GAKzF,CAAC,CAAC,MAAM,CAAC;IACX,sBAAsB,EAAE,KAAK,CAAC,QAAQ,CACpC,UAAU,CAAC,oDAAoD,CAChE;CACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,wBAAwB,EAAE,uBAAuB;KAClD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,MAAM,UAAU,4EAA4E,CAC1F,UAAkB;IAKlB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,kFAAkF;SAC/E,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzB,kGAAkG,CACnG,CAAC;AACJ,CAAC"}
|
|
@@ -21,7 +21,7 @@ export type UsersGetCurrentUserQueryError = errors.ApiErrorResponse | GreenSecur
|
|
|
21
21
|
*
|
|
22
22
|
* Supported `expand` values:
|
|
23
23
|
* - `user` — return the full user record, including all profile fields stored against the user (sensitive columns such as passwords, MFA codes, and payment-provider IDs are always omitted)
|
|
24
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
24
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
25
25
|
* - `user.payment_profile` — include the user's `payment_profile` block (card type, last four digits, validity flags) when expanded; if no payment profile is associated with the user, the response returns `payment_profile: null`
|
|
26
26
|
* - `company.location`, `company.vendor_type_restrictions`, `company.vendor_fields` — only valid for Company Manager users; embed extra fields on the user's company
|
|
27
27
|
*
|
|
@@ -40,7 +40,7 @@ export declare function useUsersGetCurrentUser(request: operations.GetCurrentUse
|
|
|
40
40
|
*
|
|
41
41
|
* Supported `expand` values:
|
|
42
42
|
* - `user` — return the full user record, including all profile fields stored against the user (sensitive columns such as passwords, MFA codes, and payment-provider IDs are always omitted)
|
|
43
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
43
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
44
44
|
* - `user.payment_profile` — include the user's `payment_profile` block (card type, last four digits, validity flags) when expanded; if no payment profile is associated with the user, the response returns `payment_profile: null`
|
|
45
45
|
* - `company.location`, `company.vendor_type_restrictions`, `company.vendor_fields` — only valid for Company Manager users; embed extra fields on the user's company
|
|
46
46
|
*
|
|
@@ -16,7 +16,7 @@ export { buildUsersGetCurrentUserQuery, prefetchUsersGetCurrentUser, queryKeyUse
|
|
|
16
16
|
*
|
|
17
17
|
* Supported `expand` values:
|
|
18
18
|
* - `user` — return the full user record, including all profile fields stored against the user (sensitive columns such as passwords, MFA codes, and payment-provider IDs are always omitted)
|
|
19
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
19
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
20
20
|
* - `user.payment_profile` — include the user's `payment_profile` block (card type, last four digits, validity flags) when expanded; if no payment profile is associated with the user, the response returns `payment_profile: null`
|
|
21
21
|
* - `company.location`, `company.vendor_type_restrictions`, `company.vendor_fields` — only valid for Company Manager users; embed extra fields on the user's company
|
|
22
22
|
*
|
|
@@ -41,7 +41,7 @@ export function useUsersGetCurrentUser(request, options) {
|
|
|
41
41
|
*
|
|
42
42
|
* Supported `expand` values:
|
|
43
43
|
* - `user` — return the full user record, including all profile fields stored against the user (sensitive columns such as passwords, MFA codes, and payment-provider IDs are always omitted)
|
|
44
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
44
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
45
45
|
* - `user.payment_profile` — include the user's `payment_profile` block (card type, last four digits, validity flags) when expanded; if no payment profile is associated with the user, the response returns `payment_profile: null`
|
|
46
46
|
* - `company.location`, `company.vendor_type_restrictions`, `company.vendor_fields` — only valid for Company Manager users; embed extra fields on the user's company
|
|
47
47
|
*
|
|
@@ -22,7 +22,7 @@ export type UsersGetUserByIdQueryError = errors.ApiErrorResponse | GreenSecurity
|
|
|
22
22
|
*
|
|
23
23
|
* Supported `expand` values:
|
|
24
24
|
* - `user` — return the full user record (sensitive columns such as passwords and payment-provider IDs are always omitted)
|
|
25
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
25
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
26
26
|
*/
|
|
27
27
|
export declare function useUsersGetUserById(request: operations.GetUserByIdRequest, options?: QueryHookOptions<UsersGetUserByIdQueryData, UsersGetUserByIdQueryError>): UseQueryResult<UsersGetUserByIdQueryData, UsersGetUserByIdQueryError>;
|
|
28
28
|
/**
|
|
@@ -37,7 +37,7 @@ export declare function useUsersGetUserById(request: operations.GetUserByIdReque
|
|
|
37
37
|
*
|
|
38
38
|
* Supported `expand` values:
|
|
39
39
|
* - `user` — return the full user record (sensitive columns such as passwords and payment-provider IDs are always omitted)
|
|
40
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
40
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
41
41
|
*/
|
|
42
42
|
export declare function useUsersGetUserByIdSuspense(request: operations.GetUserByIdRequest, options?: SuspenseQueryHookOptions<UsersGetUserByIdQueryData, UsersGetUserByIdQueryError>): UseSuspenseQueryResult<UsersGetUserByIdQueryData, UsersGetUserByIdQueryError>;
|
|
43
43
|
export declare function setUsersGetUserByIdData(client: QueryClient, queryKeyBase: [
|
|
@@ -17,7 +17,7 @@ export { buildUsersGetUserByIdQuery, prefetchUsersGetUserById, queryKeyUsersGetU
|
|
|
17
17
|
*
|
|
18
18
|
* Supported `expand` values:
|
|
19
19
|
* - `user` — return the full user record (sensitive columns such as passwords and payment-provider IDs are always omitted)
|
|
20
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
20
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
21
21
|
*/
|
|
22
22
|
export function useUsersGetUserById(request, options) {
|
|
23
23
|
const client = useGreenSecurityContext();
|
|
@@ -38,7 +38,7 @@ export function useUsersGetUserById(request, options) {
|
|
|
38
38
|
*
|
|
39
39
|
* Supported `expand` values:
|
|
40
40
|
* - `user` — return the full user record (sensitive columns such as passwords and payment-provider IDs are always omitted)
|
|
41
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
41
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
42
42
|
*/
|
|
43
43
|
export function useUsersGetUserByIdSuspense(request, options) {
|
|
44
44
|
const client = useGreenSecurityContext();
|
|
@@ -14,28 +14,28 @@ export type VendorsListVendorCreditsQueryError = errors.ApiErrorResponse | Green
|
|
|
14
14
|
* List vendor credits
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* List the credits for the vendor
|
|
17
|
+
* List the credits for the vendor. Defaults to chronological order (oldest first).
|
|
18
18
|
*/
|
|
19
19
|
export declare function useVendorsListVendorCredits(request: operations.ListVendorCreditsRequest, options?: QueryHookOptions<VendorsListVendorCreditsQueryData, VendorsListVendorCreditsQueryError>): UseQueryResult<VendorsListVendorCreditsQueryData, VendorsListVendorCreditsQueryError>;
|
|
20
20
|
/**
|
|
21
21
|
* List vendor credits
|
|
22
22
|
*
|
|
23
23
|
* @remarks
|
|
24
|
-
* List the credits for the vendor
|
|
24
|
+
* List the credits for the vendor. Defaults to chronological order (oldest first).
|
|
25
25
|
*/
|
|
26
26
|
export declare function useVendorsListVendorCreditsSuspense(request: operations.ListVendorCreditsRequest, options?: SuspenseQueryHookOptions<VendorsListVendorCreditsQueryData, VendorsListVendorCreditsQueryError>): UseSuspenseQueryResult<VendorsListVendorCreditsQueryData, VendorsListVendorCreditsQueryError>;
|
|
27
27
|
/**
|
|
28
28
|
* List vendor credits
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
|
-
* List the credits for the vendor
|
|
31
|
+
* List the credits for the vendor. Defaults to chronological order (oldest first).
|
|
32
32
|
*/
|
|
33
33
|
export declare function useVendorsListVendorCreditsInfinite(request: operations.ListVendorCreditsRequest, options?: InfiniteQueryHookOptions<VendorsListVendorCreditsInfiniteQueryData, VendorsListVendorCreditsQueryError>): UseInfiniteQueryResult<InfiniteData<VendorsListVendorCreditsInfiniteQueryData, VendorsListVendorCreditsPageParams>, VendorsListVendorCreditsQueryError>;
|
|
34
34
|
/**
|
|
35
35
|
* List vendor credits
|
|
36
36
|
*
|
|
37
37
|
* @remarks
|
|
38
|
-
* List the credits for the vendor
|
|
38
|
+
* List the credits for the vendor. Defaults to chronological order (oldest first).
|
|
39
39
|
*/
|
|
40
40
|
export declare function useVendorsListVendorCreditsInfiniteSuspense(request: operations.ListVendorCreditsRequest, options?: SuspenseInfiniteQueryHookOptions<VendorsListVendorCreditsInfiniteQueryData, VendorsListVendorCreditsQueryError>): UseSuspenseInfiniteQueryResult<InfiniteData<VendorsListVendorCreditsInfiniteQueryData, VendorsListVendorCreditsPageParams>, VendorsListVendorCreditsQueryError>;
|
|
41
41
|
export declare function setVendorsListVendorCreditsData(client: QueryClient, queryKeyBase: [
|
|
@@ -9,7 +9,7 @@ export { buildVendorsListVendorCreditsInfiniteQuery, buildVendorsListVendorCredi
|
|
|
9
9
|
* List vendor credits
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
|
-
* List the credits for the vendor
|
|
12
|
+
* List the credits for the vendor. Defaults to chronological order (oldest first).
|
|
13
13
|
*/
|
|
14
14
|
export function useVendorsListVendorCredits(request, options) {
|
|
15
15
|
const client = useGreenSecurityContext();
|
|
@@ -22,7 +22,7 @@ export function useVendorsListVendorCredits(request, options) {
|
|
|
22
22
|
* List vendor credits
|
|
23
23
|
*
|
|
24
24
|
* @remarks
|
|
25
|
-
* List the credits for the vendor
|
|
25
|
+
* List the credits for the vendor. Defaults to chronological order (oldest first).
|
|
26
26
|
*/
|
|
27
27
|
export function useVendorsListVendorCreditsSuspense(request, options) {
|
|
28
28
|
const client = useGreenSecurityContext();
|
|
@@ -35,7 +35,7 @@ export function useVendorsListVendorCreditsSuspense(request, options) {
|
|
|
35
35
|
* List vendor credits
|
|
36
36
|
*
|
|
37
37
|
* @remarks
|
|
38
|
-
* List the credits for the vendor
|
|
38
|
+
* List the credits for the vendor. Defaults to chronological order (oldest first).
|
|
39
39
|
*/
|
|
40
40
|
export function useVendorsListVendorCreditsInfinite(request, options) {
|
|
41
41
|
const client = useGreenSecurityContext();
|
|
@@ -50,7 +50,7 @@ export function useVendorsListVendorCreditsInfinite(request, options) {
|
|
|
50
50
|
* List vendor credits
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* List the credits for the vendor
|
|
53
|
+
* List the credits for the vendor. Defaults to chronological order (oldest first).
|
|
54
54
|
*/
|
|
55
55
|
export function useVendorsListVendorCreditsInfiniteSuspense(request, options) {
|
|
56
56
|
const client = useGreenSecurityContext();
|
package/dist/esm/sdk/users.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class Users extends ClientSDK {
|
|
|
13
13
|
*
|
|
14
14
|
* Supported `expand` values:
|
|
15
15
|
* - `user` — return the full user record, including all profile fields stored against the user (sensitive columns such as passwords, MFA codes, and payment-provider IDs are always omitted)
|
|
16
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
16
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
17
17
|
* - `user.payment_profile` — include the user's `payment_profile` block (card type, last four digits, validity flags) when expanded; if no payment profile is associated with the user, the response returns `payment_profile: null`
|
|
18
18
|
* - `company.location`, `company.vendor_type_restrictions`, `company.vendor_fields` — only valid for Company Manager users; embed extra fields on the user's company
|
|
19
19
|
*
|
|
@@ -33,7 +33,7 @@ export declare class Users extends ClientSDK {
|
|
|
33
33
|
*
|
|
34
34
|
* Supported `expand` values:
|
|
35
35
|
* - `user` — return the full user record (sensitive columns such as passwords and payment-provider IDs are always omitted)
|
|
36
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
36
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
37
37
|
*/
|
|
38
38
|
getUserById(request: operations.GetUserByIdRequest, options?: RequestOptions): Promise<components.User>;
|
|
39
39
|
/**
|
package/dist/esm/sdk/users.js
CHANGED
|
@@ -27,7 +27,7 @@ export class Users extends ClientSDK {
|
|
|
27
27
|
*
|
|
28
28
|
* Supported `expand` values:
|
|
29
29
|
* - `user` — return the full user record, including all profile fields stored against the user (sensitive columns such as passwords, MFA codes, and payment-provider IDs are always omitted)
|
|
30
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
30
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
31
31
|
* - `user.payment_profile` — include the user's `payment_profile` block (card type, last four digits, validity flags) when expanded; if no payment profile is associated with the user, the response returns `payment_profile: null`
|
|
32
32
|
* - `company.location`, `company.vendor_type_restrictions`, `company.vendor_fields` — only valid for Company Manager users; embed extra fields on the user's company
|
|
33
33
|
*
|
|
@@ -49,7 +49,7 @@ export class Users extends ClientSDK {
|
|
|
49
49
|
*
|
|
50
50
|
* Supported `expand` values:
|
|
51
51
|
* - `user` — return the full user record (sensitive columns such as passwords and payment-provider IDs are always omitted)
|
|
52
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
52
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
53
53
|
*/
|
|
54
54
|
async getUserById(request, options) {
|
|
55
55
|
return unwrapAsync(usersGetUserById(this, request, options));
|
|
@@ -429,7 +429,7 @@ export declare class Vendors extends ClientSDK {
|
|
|
429
429
|
* List vendor credits
|
|
430
430
|
*
|
|
431
431
|
* @remarks
|
|
432
|
-
* List the credits for the vendor
|
|
432
|
+
* List the credits for the vendor. Defaults to chronological order (oldest first).
|
|
433
433
|
*/
|
|
434
434
|
listVendorCredits(request: operations.ListVendorCreditsRequest, options?: RequestOptions): Promise<PageIterator<operations.ListVendorCreditsResponse, {
|
|
435
435
|
page: number;
|
package/dist/esm/sdk/vendors.js
CHANGED
|
@@ -546,7 +546,7 @@ export class Vendors extends ClientSDK {
|
|
|
546
546
|
* List vendor credits
|
|
547
547
|
*
|
|
548
548
|
* @remarks
|
|
549
|
-
* List the credits for the vendor
|
|
549
|
+
* List the credits for the vendor. Defaults to chronological order (oldest first).
|
|
550
550
|
*/
|
|
551
551
|
async listVendorCredits(request, options) {
|
|
552
552
|
return unwrapResultIterator(vendorsListVendorCredits(this, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -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:
|
|
23
|
+
desc: true,
|
|
24
24
|
sort: "",
|
|
25
25
|
});
|
|
26
26
|
expect(testWebhookListForVendorUserResult).toBeDefined();
|
|
@@ -35,37 +35,40 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
35
35
|
useUrlParams: false,
|
|
36
36
|
},
|
|
37
37
|
items: [
|
|
38
|
-
{
|
|
39
|
-
facility: {},
|
|
40
|
-
},
|
|
41
38
|
{
|
|
42
39
|
facility: {
|
|
43
40
|
contacts: {
|
|
44
41
|
contact: {
|
|
45
|
-
status: "
|
|
46
|
-
department:
|
|
42
|
+
status: "Inactive",
|
|
43
|
+
department: 123,
|
|
44
|
+
},
|
|
45
|
+
adminContact: {
|
|
46
|
+
status: "Inactive",
|
|
47
|
+
department: 123,
|
|
47
48
|
},
|
|
48
|
-
adminContact: null,
|
|
49
49
|
techContact: {
|
|
50
50
|
status: "Deleted",
|
|
51
51
|
department: 123,
|
|
52
52
|
},
|
|
53
53
|
greenSecurityCsm: {
|
|
54
|
-
status: "
|
|
55
|
-
department:
|
|
54
|
+
status: "Deleted",
|
|
55
|
+
department: 123,
|
|
56
56
|
},
|
|
57
57
|
accountManager: {
|
|
58
|
-
status: "
|
|
59
|
-
department:
|
|
58
|
+
status: "Active",
|
|
59
|
+
department: null,
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
62
|
vendorGuestPolicy: {
|
|
63
63
|
enabled: false,
|
|
64
64
|
vendorGuestLimitAndOr: "and",
|
|
65
|
-
vendorGuestRequireEmail:
|
|
65
|
+
vendorGuestRequireEmail: true,
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
|
+
{
|
|
70
|
+
facility: {},
|
|
71
|
+
},
|
|
69
72
|
],
|
|
70
73
|
});
|
|
71
74
|
});
|
|
@@ -82,9 +85,9 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
82
85
|
});
|
|
83
86
|
|
|
84
87
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
85
|
-
longitude:
|
|
86
|
-
latitude:
|
|
87
|
-
zoneId:
|
|
88
|
+
longitude: 7111.64,
|
|
89
|
+
latitude: 3488.1,
|
|
90
|
+
zoneId: 501670,
|
|
88
91
|
});
|
|
89
92
|
expect(result).toBeDefined();
|
|
90
93
|
expect(result).toEqual({});
|
|
@@ -38,7 +38,7 @@ import { Result } from "../types/fp.js";
|
|
|
38
38
|
*
|
|
39
39
|
* Supported `expand` values:
|
|
40
40
|
* - `user` — return the full user record, including all profile fields stored against the user (sensitive columns such as passwords, MFA codes, and payment-provider IDs are always omitted)
|
|
41
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
41
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
42
42
|
* - `user.payment_profile` — include the user's `payment_profile` block (card type, last four digits, validity flags) when expanded; if no payment profile is associated with the user, the response returns `payment_profile: null`
|
|
43
43
|
* - `company.location`, `company.vendor_type_restrictions`, `company.vendor_fields` — only valid for Company Manager users; embed extra fields on the user's company
|
|
44
44
|
*
|
|
@@ -39,7 +39,7 @@ import { Result } from "../types/fp.js";
|
|
|
39
39
|
*
|
|
40
40
|
* Supported `expand` values:
|
|
41
41
|
* - `user` — return the full user record (sensitive columns such as passwords and payment-provider IDs are always omitted)
|
|
42
|
-
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients
|
|
42
|
+
* - `user.email_preferences` — include the user's `email_preferences` block (notification recipients, weekly email flags, and — for company managers — `receive_vendor_emails`)
|
|
43
43
|
*
|
|
44
44
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
45
45
|
*/
|
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.43.5",
|
|
83
|
-
sdkVersion: "0.44.0-beta.
|
|
84
|
-
genVersion: "2.
|
|
83
|
+
sdkVersion: "0.44.0-beta.41",
|
|
84
|
+
genVersion: "2.916.4",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.44.0-beta.
|
|
86
|
+
"speakeasy-sdk/typescript 0.44.0-beta.41 2.916.4 0.43.5 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|