@greensecurity/javascript-sdk 0.40.8-beta.25 → 0.40.8-beta.26

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 (127) hide show
  1. package/README.md +1 -1
  2. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  3. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  4. package/dist/commonjs/admin-funcs/registerCompanies.d.ts +16 -0
  5. package/dist/commonjs/admin-funcs/registerCompanies.d.ts.map +1 -0
  6. package/dist/commonjs/admin-funcs/registerCompanies.js +9 -0
  7. package/dist/commonjs/admin-funcs/registerCompanies.js.map +1 -0
  8. package/dist/commonjs/admin-funcs/registerEmail.d.ts +9 -0
  9. package/dist/commonjs/admin-funcs/registerEmail.d.ts.map +1 -0
  10. package/dist/commonjs/admin-funcs/registerEmail.js +9 -0
  11. package/dist/commonjs/admin-funcs/registerEmail.js.map +1 -0
  12. package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts +23 -0
  13. package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts.map +1 -0
  14. package/dist/commonjs/admin-funcs/registerGeneralInfo.js +9 -0
  15. package/dist/commonjs/admin-funcs/registerGeneralInfo.js.map +1 -0
  16. package/dist/commonjs/admin-funcs/registerPassword.d.ts +7 -0
  17. package/dist/commonjs/admin-funcs/registerPassword.d.ts.map +1 -0
  18. package/dist/commonjs/admin-funcs/registerPassword.js +9 -0
  19. package/dist/commonjs/admin-funcs/registerPassword.js.map +1 -0
  20. package/dist/commonjs/index.extras.d.ts +10 -0
  21. package/dist/commonjs/index.extras.d.ts.map +1 -1
  22. package/dist/commonjs/index.extras.js +10 -0
  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/components/credential.d.ts +4 -6
  27. package/dist/commonjs/models/components/credential.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/credential.js +4 -8
  29. package/dist/commonjs/models/components/credential.js.map +1 -1
  30. package/dist/commonjs/models/components/credentialstatus.d.ts +0 -3
  31. package/dist/commonjs/models/components/credentialstatus.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/credentialstatus.js +0 -1
  33. package/dist/commonjs/models/components/credentialstatus.js.map +1 -1
  34. package/dist/commonjs/models/components/facilitycalendarsummary.d.ts +0 -2
  35. package/dist/commonjs/models/components/facilitycalendarsummary.d.ts.map +1 -1
  36. package/dist/commonjs/models/components/facilitycalendarsummary.js +0 -4
  37. package/dist/commonjs/models/components/facilitycalendarsummary.js.map +1 -1
  38. package/dist/commonjs/models/components/facilitysummary.d.ts +0 -2
  39. package/dist/commonjs/models/components/facilitysummary.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/facilitysummary.js +0 -4
  41. package/dist/commonjs/models/components/facilitysummary.js.map +1 -1
  42. package/dist/commonjs/models/components/vendor.d.ts +0 -2
  43. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/vendor.js +0 -4
  45. package/dist/commonjs/models/components/vendor.js.map +1 -1
  46. package/dist/commonjs/models/errors/index.d.ts +0 -1
  47. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  48. package/dist/commonjs/models/errors/index.js +0 -1
  49. package/dist/commonjs/models/errors/index.js.map +1 -1
  50. package/dist/commonjs/models/operations/listvendorcredentials.d.ts +4 -4
  51. package/dist/commonjs/models/operations/listvendorcredentials.d.ts.map +1 -1
  52. package/dist/commonjs/models/operations/listvendorcredentials.js +4 -4
  53. package/dist/commonjs/models/operations/listvendorcredentials.js.map +1 -1
  54. package/dist/commonjs/react-query/vendorsListVendorCredentials.d.ts +3 -3
  55. package/dist/commonjs/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
  56. package/dist/esm/__tests__/webhooks.test.js +1 -1
  57. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  58. package/dist/esm/admin-funcs/registerCompanies.d.ts +16 -0
  59. package/dist/esm/admin-funcs/registerCompanies.d.ts.map +1 -0
  60. package/dist/esm/admin-funcs/registerCompanies.js +6 -0
  61. package/dist/esm/admin-funcs/registerCompanies.js.map +1 -0
  62. package/dist/esm/admin-funcs/registerEmail.d.ts +9 -0
  63. package/dist/esm/admin-funcs/registerEmail.d.ts.map +1 -0
  64. package/dist/esm/admin-funcs/registerEmail.js +6 -0
  65. package/dist/esm/admin-funcs/registerEmail.js.map +1 -0
  66. package/dist/esm/admin-funcs/registerGeneralInfo.d.ts +23 -0
  67. package/dist/esm/admin-funcs/registerGeneralInfo.d.ts.map +1 -0
  68. package/dist/esm/admin-funcs/registerGeneralInfo.js +6 -0
  69. package/dist/esm/admin-funcs/registerGeneralInfo.js.map +1 -0
  70. package/dist/esm/admin-funcs/registerPassword.d.ts +7 -0
  71. package/dist/esm/admin-funcs/registerPassword.d.ts.map +1 -0
  72. package/dist/esm/admin-funcs/registerPassword.js +6 -0
  73. package/dist/esm/admin-funcs/registerPassword.js.map +1 -0
  74. package/dist/esm/index.extras.d.ts +10 -0
  75. package/dist/esm/index.extras.d.ts.map +1 -1
  76. package/dist/esm/index.extras.js +10 -0
  77. package/dist/esm/index.extras.js.map +1 -1
  78. package/dist/esm/lib/config.d.ts +4 -4
  79. package/dist/esm/lib/config.js +4 -4
  80. package/dist/esm/models/components/credential.d.ts +4 -6
  81. package/dist/esm/models/components/credential.d.ts.map +1 -1
  82. package/dist/esm/models/components/credential.js +4 -8
  83. package/dist/esm/models/components/credential.js.map +1 -1
  84. package/dist/esm/models/components/credentialstatus.d.ts +0 -3
  85. package/dist/esm/models/components/credentialstatus.d.ts.map +1 -1
  86. package/dist/esm/models/components/credentialstatus.js +0 -1
  87. package/dist/esm/models/components/credentialstatus.js.map +1 -1
  88. package/dist/esm/models/components/facilitycalendarsummary.d.ts +0 -2
  89. package/dist/esm/models/components/facilitycalendarsummary.d.ts.map +1 -1
  90. package/dist/esm/models/components/facilitycalendarsummary.js +0 -4
  91. package/dist/esm/models/components/facilitycalendarsummary.js.map +1 -1
  92. package/dist/esm/models/components/facilitysummary.d.ts +0 -2
  93. package/dist/esm/models/components/facilitysummary.d.ts.map +1 -1
  94. package/dist/esm/models/components/facilitysummary.js +0 -4
  95. package/dist/esm/models/components/facilitysummary.js.map +1 -1
  96. package/dist/esm/models/components/vendor.d.ts +0 -2
  97. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  98. package/dist/esm/models/components/vendor.js +0 -4
  99. package/dist/esm/models/components/vendor.js.map +1 -1
  100. package/dist/esm/models/errors/index.d.ts +0 -1
  101. package/dist/esm/models/errors/index.d.ts.map +1 -1
  102. package/dist/esm/models/errors/index.js +0 -1
  103. package/dist/esm/models/errors/index.js.map +1 -1
  104. package/dist/esm/models/operations/listvendorcredentials.d.ts +4 -4
  105. package/dist/esm/models/operations/listvendorcredentials.d.ts.map +1 -1
  106. package/dist/esm/models/operations/listvendorcredentials.js +4 -4
  107. package/dist/esm/models/operations/listvendorcredentials.js.map +1 -1
  108. package/dist/esm/react-query/vendorsListVendorCredentials.d.ts +3 -3
  109. package/dist/esm/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
  110. package/examples/package-lock.json +1 -1
  111. package/jsr.json +1 -1
  112. package/package.json +1 -1
  113. package/src/__tests__/webhooks.test.ts +1 -1
  114. package/src/admin-funcs/registerCompanies.ts +23 -0
  115. package/src/admin-funcs/registerEmail.ts +16 -0
  116. package/src/admin-funcs/registerGeneralInfo.ts +30 -0
  117. package/src/admin-funcs/registerPassword.ts +14 -0
  118. package/src/index.extras.ts +14 -1
  119. package/src/lib/config.ts +4 -4
  120. package/src/models/components/credential.ts +10 -19
  121. package/src/models/components/credentialstatus.ts +0 -1
  122. package/src/models/components/facilitycalendarsummary.ts +0 -6
  123. package/src/models/components/facilitysummary.ts +0 -6
  124. package/src/models/components/vendor.ts +0 -6
  125. package/src/models/errors/index.ts +0 -1
  126. package/src/models/operations/listvendorcredentials.ts +10 -8
  127. package/src/react-query/vendorsListVendorCredentials.ts +3 -3
@@ -24,7 +24,6 @@ export type FacilityCalendarSummaryVendorPolicy = {
24
24
  export type FacilityCalendarSummary = {
25
25
  id?: number | undefined;
26
26
  name?: string | undefined;
27
- systemId?: number | undefined;
28
27
  vendorPolicy?: FacilityCalendarSummaryVendorPolicy | null | undefined;
29
28
  allowUserAppointments?: boolean | undefined;
30
29
  allowDeptAppointments?: boolean | undefined;
@@ -105,7 +104,6 @@ export const FacilityCalendarSummary$inboundSchema: z.ZodType<
105
104
  > = z.object({
106
105
  id: z.number().int().optional(),
107
106
  name: z.string().optional(),
108
- system_id: z.number().int().optional(),
109
107
  vendor_policy: z.nullable(
110
108
  z.lazy(() => FacilityCalendarSummaryVendorPolicy$inboundSchema),
111
109
  ).optional(),
@@ -113,7 +111,6 @@ export const FacilityCalendarSummary$inboundSchema: z.ZodType<
113
111
  allow_dept_appointments: z.boolean().optional(),
114
112
  }).transform((v) => {
115
113
  return remap$(v, {
116
- "system_id": "systemId",
117
114
  "vendor_policy": "vendorPolicy",
118
115
  "allow_user_appointments": "allowUserAppointments",
119
116
  "allow_dept_appointments": "allowDeptAppointments",
@@ -124,7 +121,6 @@ export const FacilityCalendarSummary$inboundSchema: z.ZodType<
124
121
  export type FacilityCalendarSummary$Outbound = {
125
122
  id?: number | undefined;
126
123
  name?: string | undefined;
127
- system_id?: number | undefined;
128
124
  vendor_policy?:
129
125
  | FacilityCalendarSummaryVendorPolicy$Outbound
130
126
  | null
@@ -141,7 +137,6 @@ export const FacilityCalendarSummary$outboundSchema: z.ZodType<
141
137
  > = z.object({
142
138
  id: z.number().int().optional(),
143
139
  name: z.string().optional(),
144
- systemId: z.number().int().optional(),
145
140
  vendorPolicy: z.nullable(
146
141
  z.lazy(() => FacilityCalendarSummaryVendorPolicy$outboundSchema),
147
142
  ).optional(),
@@ -149,7 +144,6 @@ export const FacilityCalendarSummary$outboundSchema: z.ZodType<
149
144
  allowDeptAppointments: z.boolean().optional(),
150
145
  }).transform((v) => {
151
146
  return remap$(v, {
152
- systemId: "system_id",
153
147
  vendorPolicy: "vendor_policy",
154
148
  allowUserAppointments: "allow_user_appointments",
155
149
  allowDeptAppointments: "allow_dept_appointments",
@@ -24,7 +24,6 @@ export type VendorPolicy = {
24
24
  export type FacilitySummary = {
25
25
  id?: number | undefined;
26
26
  name?: string | undefined;
27
- systemId?: number | undefined;
28
27
  vendorPolicy?: VendorPolicy | null | undefined;
29
28
  };
30
29
 
@@ -94,12 +93,10 @@ export const FacilitySummary$inboundSchema: z.ZodType<
94
93
  > = z.object({
95
94
  id: z.number().int().optional(),
96
95
  name: z.string().optional(),
97
- system_id: z.number().int().optional(),
98
96
  vendor_policy: z.nullable(z.lazy(() => VendorPolicy$inboundSchema))
99
97
  .optional(),
100
98
  }).transform((v) => {
101
99
  return remap$(v, {
102
- "system_id": "systemId",
103
100
  "vendor_policy": "vendorPolicy",
104
101
  });
105
102
  });
@@ -108,7 +105,6 @@ export const FacilitySummary$inboundSchema: z.ZodType<
108
105
  export type FacilitySummary$Outbound = {
109
106
  id?: number | undefined;
110
107
  name?: string | undefined;
111
- system_id?: number | undefined;
112
108
  vendor_policy?: VendorPolicy$Outbound | null | undefined;
113
109
  };
114
110
 
@@ -120,12 +116,10 @@ export const FacilitySummary$outboundSchema: z.ZodType<
120
116
  > = z.object({
121
117
  id: z.number().int().optional(),
122
118
  name: z.string().optional(),
123
- systemId: z.number().int().optional(),
124
119
  vendorPolicy: z.nullable(z.lazy(() => VendorPolicy$outboundSchema))
125
120
  .optional(),
126
121
  }).transform((v) => {
127
122
  return remap$(v, {
128
- systemId: "system_id",
129
123
  vendorPolicy: "vendor_policy",
130
124
  });
131
125
  });
@@ -233,7 +233,6 @@ export type Vendor = {
233
233
  pendingInvoice?: Invoice | number | null | undefined;
234
234
  vendorGroups?: Array<VendorGroup | null> | null | undefined;
235
235
  hasCredentialedFacilities?: boolean | null | undefined;
236
- targetFacilitiesUpdated?: string | null | undefined;
237
236
  };
238
237
 
239
238
  /** @internal */
@@ -1107,7 +1106,6 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
1107
1106
  vendor_groups: z.nullable(z.array(z.nullable(VendorGroup$inboundSchema)))
1108
1107
  .optional(),
1109
1108
  has_credentialed_facilities: z.nullable(z.boolean()).optional(),
1110
- target_facilities_updated: z.nullable(z.string()).optional(),
1111
1109
  }).transform((v) => {
1112
1110
  return remap$(v, {
1113
1111
  "email_recepient": "emailRecepient",
@@ -1133,7 +1131,6 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
1133
1131
  "pending_invoice": "pendingInvoice",
1134
1132
  "vendor_groups": "vendorGroups",
1135
1133
  "has_credentialed_facilities": "hasCredentialedFacilities",
1136
- "target_facilities_updated": "targetFacilitiesUpdated",
1137
1134
  });
1138
1135
  });
1139
1136
 
@@ -1176,7 +1173,6 @@ export type Vendor$Outbound = {
1176
1173
  pending_invoice?: Invoice$Outbound | number | null | undefined;
1177
1174
  vendor_groups?: Array<VendorGroup$Outbound | null> | null | undefined;
1178
1175
  has_credentialed_facilities?: boolean | null | undefined;
1179
- target_facilities_updated?: string | null | undefined;
1180
1176
  };
1181
1177
 
1182
1178
  /** @internal */
@@ -1238,7 +1234,6 @@ export const Vendor$outboundSchema: z.ZodType<
1238
1234
  vendorGroups: z.nullable(z.array(z.nullable(VendorGroup$outboundSchema)))
1239
1235
  .optional(),
1240
1236
  hasCredentialedFacilities: z.nullable(z.boolean()).optional(),
1241
- targetFacilitiesUpdated: z.nullable(z.string()).optional(),
1242
1237
  }).transform((v) => {
1243
1238
  return remap$(v, {
1244
1239
  emailRecepient: "email_recepient",
@@ -1264,7 +1259,6 @@ export const Vendor$outboundSchema: z.ZodType<
1264
1259
  pendingInvoice: "pending_invoice",
1265
1260
  vendorGroups: "vendor_groups",
1266
1261
  hasCredentialedFacilities: "has_credentialed_facilities",
1267
- targetFacilitiesUpdated: "target_facilities_updated",
1268
1262
  });
1269
1263
  });
1270
1264
 
@@ -4,7 +4,6 @@
4
4
 
5
5
  export * from "./apierror.js";
6
6
  export * from "./apierrorresponse.js";
7
- export * from "./greensecurityerror.js";
8
7
  export * from "./httpclienterrors.js";
9
8
  export * from "./responsevalidationerror.js";
10
9
  export * from "./sdkvalidationerror.js";
@@ -33,7 +33,7 @@ export type ListVendorCredentialsRequest = {
33
33
  /**
34
34
  * The ID associated with a medical facility
35
35
  */
36
- facilityId?: number | null | undefined;
36
+ facilityId?: number | undefined;
37
37
  /**
38
38
  * False will return credentials that apply to vendor's company
39
39
  */
@@ -66,7 +66,7 @@ export type Pager = {
66
66
  * Pagination information for a pageable list
67
67
  */
68
68
  pager: components.Pager;
69
- items: Array<components.Credential | null>;
69
+ items: Array<components.VendorCredentialSummary | null>;
70
70
  };
71
71
 
72
72
  /**
@@ -97,7 +97,7 @@ export const ListVendorCredentialsRequest$inboundSchema: z.ZodType<
97
97
  page: z.number().int().optional(),
98
98
  items_per_page: z.number().int().optional(),
99
99
  credential_status: components.CredentialStatus$inboundSchema.optional(),
100
- facility_id: z.nullable(z.number()).optional(),
100
+ facility_id: z.number().optional(),
101
101
  include_vc: z.number().optional(),
102
102
  include_cc: z.number().optional(),
103
103
  expedited: z.number().optional(),
@@ -121,7 +121,7 @@ export type ListVendorCredentialsRequest$Outbound = {
121
121
  page?: number | undefined;
122
122
  items_per_page?: number | undefined;
123
123
  credential_status?: string | undefined;
124
- facility_id?: number | null | undefined;
124
+ facility_id?: number | undefined;
125
125
  include_vc?: number | undefined;
126
126
  include_cc?: number | undefined;
127
127
  expedited?: number | undefined;
@@ -140,7 +140,7 @@ export const ListVendorCredentialsRequest$outboundSchema: z.ZodType<
140
140
  page: z.number().int().optional(),
141
141
  itemsPerPage: z.number().int().optional(),
142
142
  credentialStatus: components.CredentialStatus$outboundSchema.optional(),
143
- facilityId: z.nullable(z.number()).optional(),
143
+ facilityId: z.number().optional(),
144
144
  includeVc: z.number().optional(),
145
145
  includeCc: z.number().optional(),
146
146
  expedited: z.number().optional(),
@@ -247,13 +247,15 @@ export function credentialsFromJSON(
247
247
  export const Pager$inboundSchema: z.ZodType<Pager, z.ZodTypeDef, unknown> = z
248
248
  .object({
249
249
  pager: components.Pager$inboundSchema,
250
- items: z.array(z.nullable(components.Credential$inboundSchema)),
250
+ items: z.array(
251
+ z.nullable(components.VendorCredentialSummary$inboundSchema),
252
+ ),
251
253
  });
252
254
 
253
255
  /** @internal */
254
256
  export type Pager$Outbound = {
255
257
  pager: components.Pager$Outbound;
256
- items: Array<components.Credential$Outbound | null>;
258
+ items: Array<components.VendorCredentialSummary$Outbound | null>;
257
259
  };
258
260
 
259
261
  /** @internal */
@@ -263,7 +265,7 @@ export const Pager$outboundSchema: z.ZodType<
263
265
  Pager
264
266
  > = z.object({
265
267
  pager: components.Pager$outboundSchema,
266
- items: z.array(z.nullable(components.Credential$outboundSchema)),
268
+ items: z.array(z.nullable(components.VendorCredentialSummary$outboundSchema)),
267
269
  });
268
270
 
269
271
  /**
@@ -192,7 +192,7 @@ export function setVendorsListVendorCredentialsData(
192
192
  page?: number | undefined;
193
193
  itemsPerPage?: number | undefined;
194
194
  credentialStatus?: components.CredentialStatus | undefined;
195
- facilityId?: number | null | undefined;
195
+ facilityId?: number | undefined;
196
196
  includeVc?: number | undefined;
197
197
  includeCc?: number | undefined;
198
198
  expedited?: number | undefined;
@@ -217,7 +217,7 @@ export function invalidateVendorsListVendorCredentials(
217
217
  page?: number | undefined;
218
218
  itemsPerPage?: number | undefined;
219
219
  credentialStatus?: components.CredentialStatus | undefined;
220
- facilityId?: number | null | undefined;
220
+ facilityId?: number | undefined;
221
221
  includeVc?: number | undefined;
222
222
  includeCc?: number | undefined;
223
223
  expedited?: number | undefined;
@@ -356,7 +356,7 @@ export function queryKeyVendorsListVendorCredentials(
356
356
  page?: number | undefined;
357
357
  itemsPerPage?: number | undefined;
358
358
  credentialStatus?: components.CredentialStatus | undefined;
359
- facilityId?: number | null | undefined;
359
+ facilityId?: number | undefined;
360
360
  includeVc?: number | undefined;
361
361
  includeCc?: number | undefined;
362
362
  expedited?: number | undefined;