@teja-app/api-client 2026.4.20 → 2026.5.17
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/generated/index.d.ts +4 -4
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +4 -4
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/services/AppointmentsService.d.ts +53 -0
- package/dist/generated/services/AppointmentsService.d.ts.map +1 -1
- package/dist/generated/services/AppointmentsService.js +30 -0
- package/dist/generated/services/AppointmentsService.js.map +1 -1
- package/dist/generated/services/BillingCodesService.d.ts +25 -0
- package/dist/generated/services/BillingCodesService.d.ts.map +1 -0
- package/dist/generated/services/BillingCodesService.js +20 -0
- package/dist/generated/services/BillingCodesService.js.map +1 -0
- package/dist/generated/services/ClientPortalAppointmentsService.d.ts +6 -0
- package/dist/generated/services/ClientPortalAppointmentsService.d.ts.map +1 -1
- package/dist/generated/services/ClientPortalAppointmentsService.js.map +1 -1
- package/dist/generated/services/ClientPortalService.d.ts +224 -0
- package/dist/generated/services/ClientPortalService.d.ts.map +1 -1
- package/dist/generated/services/ClientPortalService.js +50 -0
- package/dist/generated/services/ClientPortalService.js.map +1 -1
- package/dist/generated/services/ClientsService.d.ts +17 -0
- package/dist/generated/services/ClientsService.d.ts.map +1 -1
- package/dist/generated/services/ClientsService.js +15 -0
- package/dist/generated/services/ClientsService.js.map +1 -1
- package/dist/generated/services/InvoicesService.d.ts +635 -0
- package/dist/generated/services/InvoicesService.d.ts.map +1 -0
- package/dist/generated/services/InvoicesService.js +172 -0
- package/dist/generated/services/InvoicesService.js.map +1 -0
- package/dist/generated/services/PaymentsService.d.ts +17 -17
- package/dist/generated/services/PaymentsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentsService.js +24 -24
- package/dist/generated/services/PaymentsService.js.map +1 -1
- package/dist/generated/services/ServicesService.d.ts +204 -0
- package/dist/generated/services/ServicesService.d.ts.map +1 -0
- package/dist/generated/services/ServicesService.js +109 -0
- package/dist/generated/services/ServicesService.js.map +1 -0
- package/dist/generated/services/SuperbillsService.d.ts +60 -263
- package/dist/generated/services/SuperbillsService.d.ts.map +1 -1
- package/dist/generated/services/SuperbillsService.js +8 -240
- package/dist/generated/services/SuperbillsService.js.map +1 -1
- package/dist/generated/services/TelehealthService.d.ts +30 -0
- package/dist/generated/services/TelehealthService.d.ts.map +1 -0
- package/dist/generated/services/TelehealthService.js +46 -0
- package/dist/generated/services/TelehealthService.js.map +1 -0
- package/dist/generated/services/TenantsService.d.ts +6 -0
- package/dist/generated/services/TenantsService.d.ts.map +1 -1
- package/dist/generated/services/TenantsService.js.map +1 -1
- package/package.json +1 -1
- package/dist/generated/services/BillingService.d.ts +0 -254
- package/dist/generated/services/BillingService.d.ts.map +0 -1
- package/dist/generated/services/BillingService.js +0 -191
- package/dist/generated/services/BillingService.js.map +0 -1
- package/dist/generated/services/ClientPortalSuperbillsService.d.ts +0 -13
- package/dist/generated/services/ClientPortalSuperbillsService.d.ts.map +0 -1
- package/dist/generated/services/ClientPortalSuperbillsService.js +0 -20
- package/dist/generated/services/ClientPortalSuperbillsService.js.map +0 -1
- package/dist/generated/services/CreditsService.d.ts +0 -82
- package/dist/generated/services/CreditsService.d.ts.map +0 -1
- package/dist/generated/services/CreditsService.js +0 -63
- package/dist/generated/services/CreditsService.js.map +0 -1
- package/dist/generated/services/SuperbillCodesService.d.ts +0 -84
- package/dist/generated/services/SuperbillCodesService.d.ts.map +0 -1
- package/dist/generated/services/SuperbillCodesService.js +0 -84
- package/dist/generated/services/SuperbillCodesService.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperbillsService.js","sourceRoot":"","sources":["../../../src/generated/services/SuperbillsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,OAAO,iBAAiB;IAC1B
|
|
1
|
+
{"version":3,"file":"SuperbillsService.js","sourceRoot":"","sources":["../../../src/generated/services/SuperbillsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,OAAO,iBAAiB;IAC1B;;;;OAIG;IACI,MAAM,CAAC,aAAa,CAAC,EACxB,QAAQ,GAGX;QA0BG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,aAAa;YAClB,KAAK,EAAE;gBACH,UAAU,EAAE,QAAQ;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;OAIG;IACI,MAAM,CAAC,iBAAiB,CAAC,EAC5B,EAAE,GAGL;QAyBG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,kBAAkB;YACvB,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;OAIG;IACI,MAAM,CAAC,0BAA0B,CAAC,EACrC,WAAW,GAMd;QAyBG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2BAA2B;YAChC,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
export declare class TelehealthService {
|
|
3
|
+
/**
|
|
4
|
+
* Issue telehealth ticket (therapist)
|
|
5
|
+
* Mints a short-lived telehealth ticket for the authenticated therapist to join the appointment's video room.
|
|
6
|
+
* @throws ApiError
|
|
7
|
+
*/
|
|
8
|
+
static postAppointmentsByIdVideoToken({ id, }: {
|
|
9
|
+
id: string;
|
|
10
|
+
}): CancelablePromise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Issue telehealth ticket (client)
|
|
13
|
+
* Mints a short-lived telehealth ticket for the authenticated client to join the appointment's video room.
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
static postClientPortalAppointmentsByIdVideoToken({ id, }: {
|
|
17
|
+
id: string;
|
|
18
|
+
}): CancelablePromise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Exchange a telehealth join deep-link token
|
|
21
|
+
* Single-use exchange of the `?join=<token>` token from the 2h reminder email for a regular client-portal session. Rate-limited per IP.
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
static postTelehealthJoinTokensExchange({ requestBody, }: {
|
|
25
|
+
requestBody: {
|
|
26
|
+
token: string;
|
|
27
|
+
};
|
|
28
|
+
}): CancelablePromise<void>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=TelehealthService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TelehealthService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/TelehealthService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,iBAAiB;IAC1B;;;;OAIG;WACW,8BAA8B,CAAC,EACzC,EAAE,GACL,EAAE;QACC,EAAE,EAAE,MAAM,CAAC;KACd,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAS3B;;;;OAIG;WACW,0CAA0C,CAAC,EACrD,EAAE,GACL,EAAE;QACC,EAAE,EAAE,MAAM,CAAC;KACd,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAS3B;;;;OAIG;WACW,gCAAgC,CAAC,EAC3C,WAAW,GACd,EAAE;QACC,WAAW,EAAE;YACT,KAAK,EAAE,MAAM,CAAC;SACjB,CAAC;KACL,GAAG,iBAAiB,CAAC,IAAI,CAAC;CAQ9B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class TelehealthService {
|
|
4
|
+
/**
|
|
5
|
+
* Issue telehealth ticket (therapist)
|
|
6
|
+
* Mints a short-lived telehealth ticket for the authenticated therapist to join the appointment's video room.
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static postAppointmentsByIdVideoToken({ id, }) {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'POST',
|
|
12
|
+
url: '/appointments/{id}/video-token',
|
|
13
|
+
path: {
|
|
14
|
+
'id': id,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Issue telehealth ticket (client)
|
|
20
|
+
* Mints a short-lived telehealth ticket for the authenticated client to join the appointment's video room.
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static postClientPortalAppointmentsByIdVideoToken({ id, }) {
|
|
24
|
+
return __request(OpenAPI, {
|
|
25
|
+
method: 'POST',
|
|
26
|
+
url: '/client-portal/appointments/{id}/video-token',
|
|
27
|
+
path: {
|
|
28
|
+
'id': id,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Exchange a telehealth join deep-link token
|
|
34
|
+
* Single-use exchange of the `?join=<token>` token from the 2h reminder email for a regular client-portal session. Rate-limited per IP.
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
static postTelehealthJoinTokensExchange({ requestBody, }) {
|
|
38
|
+
return __request(OpenAPI, {
|
|
39
|
+
method: 'POST',
|
|
40
|
+
url: '/telehealth/join-tokens/exchange',
|
|
41
|
+
body: requestBody,
|
|
42
|
+
mediaType: 'application/json',
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=TelehealthService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TelehealthService.js","sourceRoot":"","sources":["../../../src/generated/services/TelehealthService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,OAAO,iBAAiB;IAC1B;;;;OAIG;IACI,MAAM,CAAC,8BAA8B,CAAC,EACzC,EAAE,GAGL;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,gCAAgC;YACrC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;OAIG;IACI,MAAM,CAAC,0CAA0C,CAAC,EACrD,EAAE,GAGL;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,8CAA8C;YACnD,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;OAIG;IACI,MAAM,CAAC,gCAAgC,CAAC,EAC3C,WAAW,GAKd;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,kCAAkC;YACvC,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -48,6 +48,12 @@ export declare class TenantsService {
|
|
|
48
48
|
maxClients?: number;
|
|
49
49
|
maxStorageGb?: number;
|
|
50
50
|
enabledFeatures?: Array<string>;
|
|
51
|
+
taxId?: (null | string);
|
|
52
|
+
taxIdType?: (string | null);
|
|
53
|
+
taxIdDisplay?: 'superbills_only' | 'superbills_and_invoices' | 'none';
|
|
54
|
+
organizationNpi?: (null | string);
|
|
55
|
+
defaultLogoUrl?: (null | string);
|
|
56
|
+
footerText?: (null | string);
|
|
51
57
|
};
|
|
52
58
|
}): CancelablePromise<void>;
|
|
53
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TenantsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/TenantsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,cAAc;IACvB;;;;OAIG;WACW,kBAAkB,CAAC,EAC7B,WAAW,GACd,EAAE;QACC,WAAW,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,YAAY,CAAC;YACrC,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,UAAU,EAAE,MAAM,CAAC;YACnB,aAAa,EAAE,MAAM,CAAC;YACtB,cAAc,EAAE,MAAM,CAAC;YACvB,aAAa,EAAE,MAAM,CAAC;YACtB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,YAAY,CAAC,EAAE,MAAM,CAAC;SACzB,CAAC;KACL,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAQ3B;;;;OAIG;WACW,aAAa,CAAC,EACxB,EAAE,GACL,EAAE;QACC,EAAE,EAAE,MAAM,CAAC;KACd,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAS3B;;;;OAIG;WACW,eAAe,CAAC,EAC1B,EAAE,EACF,WAAW,GACd,EAAE;QACC,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,EAAE;YACT,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,eAAe,CAAC,EAAE,MAAM,CAAC;YACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"TenantsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/TenantsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,cAAc;IACvB;;;;OAIG;WACW,kBAAkB,CAAC,EAC7B,WAAW,GACd,EAAE;QACC,WAAW,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,YAAY,CAAC;YACrC,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,UAAU,EAAE,MAAM,CAAC;YACnB,aAAa,EAAE,MAAM,CAAC;YACtB,cAAc,EAAE,MAAM,CAAC;YACvB,aAAa,EAAE,MAAM,CAAC;YACtB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,YAAY,CAAC,EAAE,MAAM,CAAC;SACzB,CAAC;KACL,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAQ3B;;;;OAIG;WACW,aAAa,CAAC,EACxB,EAAE,GACL,EAAE;QACC,EAAE,EAAE,MAAM,CAAC;KACd,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAS3B;;;;OAIG;WACW,eAAe,CAAC,EAC1B,EAAE,EACF,WAAW,GACd,EAAE;QACC,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,EAAE;YACT,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,eAAe,CAAC,EAAE,MAAM,CAAC;YACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAChC,KAAK,CAAC,EAAE,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;YACxB,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;YAC5B,YAAY,CAAC,EAAE,iBAAiB,GAAG,yBAAyB,GAAG,MAAM,CAAC;YACtE,eAAe,CAAC,EAAE,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;YAClC,cAAc,CAAC,EAAE,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;YACjC,UAAU,CAAC,EAAE,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;SAChC,CAAC;KACL,GAAG,iBAAiB,CAAC,IAAI,CAAC;CAW9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TenantsService.js","sourceRoot":"","sources":["../../../src/generated/services/TenantsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,OAAO,cAAc;IACvB;;;;OAIG;IACI,MAAM,CAAC,kBAAkB,CAAC,EAC7B,WAAW,GAiBd;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,kBAAkB;YACvB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;OAIG;IACI,MAAM,CAAC,aAAa,CAAC,EACxB,EAAE,GAGL;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,cAAc;YACnB,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;OAIG;IACI,MAAM,CAAC,eAAe,CAAC,EAC1B,EAAE,EACF,WAAW,
|
|
1
|
+
{"version":3,"file":"TenantsService.js","sourceRoot":"","sources":["../../../src/generated/services/TenantsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,OAAO,cAAc;IACvB;;;;OAIG;IACI,MAAM,CAAC,kBAAkB,CAAC,EAC7B,WAAW,GAiBd;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,kBAAkB;YACvB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;OAIG;IACI,MAAM,CAAC,aAAa,CAAC,EACxB,EAAE,GAGL;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,cAAc;YACnB,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;OAIG;IACI,MAAM,CAAC,eAAe,CAAC,EAC1B,EAAE,EACF,WAAW,GAqBd;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,OAAO;YACf,GAAG,EAAE,cAAc;YACnB,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
-
export declare class BillingService {
|
|
3
|
-
/**
|
|
4
|
-
* List superbill payments
|
|
5
|
-
* List all payment records for a superbill
|
|
6
|
-
* @returns any Response for status 200
|
|
7
|
-
* @throws ApiError
|
|
8
|
-
*/
|
|
9
|
-
static getSuperbillsByIdPayments({ id, }: {
|
|
10
|
-
id: string;
|
|
11
|
-
}): CancelablePromise<{
|
|
12
|
-
success: boolean;
|
|
13
|
-
data?: {
|
|
14
|
-
payments: Array<{
|
|
15
|
-
id: string;
|
|
16
|
-
superbillId: string;
|
|
17
|
-
amount: number;
|
|
18
|
-
paymentMethod: 'stripe' | 'cash' | 'check' | 'card_external' | 'insurance' | 'credit' | 'other';
|
|
19
|
-
referenceNumber: (string | null);
|
|
20
|
-
paymentDate: string;
|
|
21
|
-
notes: (string | null);
|
|
22
|
-
refundedAmount: (number | null);
|
|
23
|
-
refundedAt: (string | null);
|
|
24
|
-
refundReason: (string | null);
|
|
25
|
-
recordedBy: string;
|
|
26
|
-
createdAt: string;
|
|
27
|
-
}>;
|
|
28
|
-
};
|
|
29
|
-
error?: string;
|
|
30
|
-
}>;
|
|
31
|
-
/**
|
|
32
|
-
* Record payment
|
|
33
|
-
* Record a manual payment on a superbill
|
|
34
|
-
* @returns any Response for status 200
|
|
35
|
-
* @throws ApiError
|
|
36
|
-
*/
|
|
37
|
-
static postSuperbillsByIdPayments({ id, requestBody, }: {
|
|
38
|
-
id: string;
|
|
39
|
-
requestBody: {
|
|
40
|
-
amount: number;
|
|
41
|
-
paymentMethod: 'stripe' | 'cash' | 'check' | 'card_external' | 'insurance' | 'credit' | 'other';
|
|
42
|
-
referenceNumber?: string;
|
|
43
|
-
paymentDate: string;
|
|
44
|
-
notes?: string;
|
|
45
|
-
};
|
|
46
|
-
}): CancelablePromise<{
|
|
47
|
-
success: boolean;
|
|
48
|
-
data?: {
|
|
49
|
-
paymentId: string;
|
|
50
|
-
superbillStatus: string;
|
|
51
|
-
balanceDue: number;
|
|
52
|
-
};
|
|
53
|
-
error?: string;
|
|
54
|
-
}>;
|
|
55
|
-
/**
|
|
56
|
-
* Mark superbill ready
|
|
57
|
-
* Mark a draft superbill as ready for billing
|
|
58
|
-
* @returns any Response for status 200
|
|
59
|
-
* @throws ApiError
|
|
60
|
-
*/
|
|
61
|
-
static postSuperbillsByIdReady({ id, }: {
|
|
62
|
-
id: string;
|
|
63
|
-
}): CancelablePromise<{
|
|
64
|
-
success: boolean;
|
|
65
|
-
data?: {
|
|
66
|
-
id: string;
|
|
67
|
-
status: string;
|
|
68
|
-
};
|
|
69
|
-
error?: string;
|
|
70
|
-
}>;
|
|
71
|
-
/**
|
|
72
|
-
* Void superbill
|
|
73
|
-
* Void a superbill with a reason
|
|
74
|
-
* @returns any Response for status 200
|
|
75
|
-
* @throws ApiError
|
|
76
|
-
*/
|
|
77
|
-
static postSuperbillsByIdVoid({ id, requestBody, }: {
|
|
78
|
-
id: string;
|
|
79
|
-
requestBody: {
|
|
80
|
-
reason: string;
|
|
81
|
-
};
|
|
82
|
-
}): CancelablePromise<{
|
|
83
|
-
success: boolean;
|
|
84
|
-
data?: {
|
|
85
|
-
id: string;
|
|
86
|
-
status: string;
|
|
87
|
-
voidedAt: string;
|
|
88
|
-
voidReason: string;
|
|
89
|
-
};
|
|
90
|
-
error?: string;
|
|
91
|
-
}>;
|
|
92
|
-
/**
|
|
93
|
-
* Process refund
|
|
94
|
-
* Process a refund on a superbill payment
|
|
95
|
-
* @returns any Response for status 200
|
|
96
|
-
* @throws ApiError
|
|
97
|
-
*/
|
|
98
|
-
static postSuperbillsByIdRefund({ id, requestBody, }: {
|
|
99
|
-
id: string;
|
|
100
|
-
requestBody: {
|
|
101
|
-
amount: number;
|
|
102
|
-
refundTo: 'original' | 'credit';
|
|
103
|
-
reason: string;
|
|
104
|
-
paymentId?: string;
|
|
105
|
-
};
|
|
106
|
-
}): CancelablePromise<{
|
|
107
|
-
success: boolean;
|
|
108
|
-
data?: {
|
|
109
|
-
refundedAmount: number;
|
|
110
|
-
superbillStatus: string;
|
|
111
|
-
};
|
|
112
|
-
error?: string;
|
|
113
|
-
}>;
|
|
114
|
-
/**
|
|
115
|
-
* Set adjustment
|
|
116
|
-
* Set an adjustment amount and reason on a superbill
|
|
117
|
-
* @returns any Response for status 200
|
|
118
|
-
* @throws ApiError
|
|
119
|
-
*/
|
|
120
|
-
static postSuperbillsByIdAdjustment({ id, requestBody, }: {
|
|
121
|
-
id: string;
|
|
122
|
-
requestBody: {
|
|
123
|
-
amount: number;
|
|
124
|
-
reason: 'sliding_scale' | 'insurance_write_off' | 'courtesy_discount' | 'error_correction' | 'other';
|
|
125
|
-
};
|
|
126
|
-
}): CancelablePromise<{
|
|
127
|
-
success: boolean;
|
|
128
|
-
data?: {
|
|
129
|
-
id: string;
|
|
130
|
-
adjustmentAmount: number;
|
|
131
|
-
adjustmentReason: string;
|
|
132
|
-
balanceDue: number;
|
|
133
|
-
};
|
|
134
|
-
error?: string;
|
|
135
|
-
}>;
|
|
136
|
-
/**
|
|
137
|
-
* Get billing metrics
|
|
138
|
-
* Get billing dashboard metrics
|
|
139
|
-
* @returns any Response for status 200
|
|
140
|
-
* @throws ApiError
|
|
141
|
-
*/
|
|
142
|
-
static getBillingMetrics(): CancelablePromise<{
|
|
143
|
-
success: boolean;
|
|
144
|
-
data?: {
|
|
145
|
-
totalOutstanding: number;
|
|
146
|
-
collectedMonth: number;
|
|
147
|
-
collectedYear: number;
|
|
148
|
-
avgDaysToPay: number;
|
|
149
|
-
outstandingByAge: Array<{
|
|
150
|
-
bucket: string;
|
|
151
|
-
amount: number;
|
|
152
|
-
}>;
|
|
153
|
-
};
|
|
154
|
-
error?: string;
|
|
155
|
-
}>;
|
|
156
|
-
/**
|
|
157
|
-
* Export superbills CSV
|
|
158
|
-
* Export superbills data as CSV
|
|
159
|
-
* @returns any Response for status 200
|
|
160
|
-
* @throws ApiError
|
|
161
|
-
*/
|
|
162
|
-
static getBillingExportCsv({ dateRangeStart, dateRangeEnd, clientId, status, }: {
|
|
163
|
-
dateRangeStart?: string;
|
|
164
|
-
dateRangeEnd?: string;
|
|
165
|
-
clientId?: string;
|
|
166
|
-
status?: 'draft' | 'ready' | 'sent' | 'submitted' | 'partial' | 'paid' | 'void' | 'refunded';
|
|
167
|
-
}): CancelablePromise<{
|
|
168
|
-
success: boolean;
|
|
169
|
-
data?: {
|
|
170
|
-
csv: string;
|
|
171
|
-
filename: string;
|
|
172
|
-
};
|
|
173
|
-
error?: string;
|
|
174
|
-
}>;
|
|
175
|
-
/**
|
|
176
|
-
* Get credit balance
|
|
177
|
-
* Get client credit balance
|
|
178
|
-
* @returns any Response for status 200
|
|
179
|
-
* @throws ApiError
|
|
180
|
-
*/
|
|
181
|
-
static getBillingCreditsByClientIdBalance({ clientId, }: {
|
|
182
|
-
clientId: string;
|
|
183
|
-
}): CancelablePromise<{
|
|
184
|
-
success: boolean;
|
|
185
|
-
data?: {
|
|
186
|
-
balance: number;
|
|
187
|
-
};
|
|
188
|
-
error?: string;
|
|
189
|
-
}>;
|
|
190
|
-
/**
|
|
191
|
-
* Get credit history
|
|
192
|
-
* Get client credit transaction history
|
|
193
|
-
* @returns any Response for status 200
|
|
194
|
-
* @throws ApiError
|
|
195
|
-
*/
|
|
196
|
-
static getBillingCreditsByClientIdHistory({ clientId, }: {
|
|
197
|
-
clientId: string;
|
|
198
|
-
}): CancelablePromise<{
|
|
199
|
-
success: boolean;
|
|
200
|
-
data?: {
|
|
201
|
-
credits: Array<{
|
|
202
|
-
id: string;
|
|
203
|
-
amount: number;
|
|
204
|
-
type: 'overpayment' | 'refund_to_credit' | 'prepayment' | 'adjustment' | 'applied';
|
|
205
|
-
sourceSuperbillId: (string | null);
|
|
206
|
-
description: string;
|
|
207
|
-
createdAt: string;
|
|
208
|
-
}>;
|
|
209
|
-
};
|
|
210
|
-
error?: string;
|
|
211
|
-
}>;
|
|
212
|
-
/**
|
|
213
|
-
* Add credit
|
|
214
|
-
* Add credit to a client account
|
|
215
|
-
* @returns any Response for status 200
|
|
216
|
-
* @throws ApiError
|
|
217
|
-
*/
|
|
218
|
-
static postBillingCredits({ requestBody, }: {
|
|
219
|
-
requestBody: {
|
|
220
|
-
clientId: string;
|
|
221
|
-
amount: number;
|
|
222
|
-
type: 'overpayment' | 'refund_to_credit' | 'prepayment' | 'adjustment' | 'applied';
|
|
223
|
-
description: string;
|
|
224
|
-
};
|
|
225
|
-
}): CancelablePromise<{
|
|
226
|
-
success: boolean;
|
|
227
|
-
data?: {
|
|
228
|
-
id: string;
|
|
229
|
-
balance: number;
|
|
230
|
-
};
|
|
231
|
-
error?: string;
|
|
232
|
-
}>;
|
|
233
|
-
/**
|
|
234
|
-
* Apply credit
|
|
235
|
-
* Apply client credit to a superbill
|
|
236
|
-
* @returns any Response for status 200
|
|
237
|
-
* @throws ApiError
|
|
238
|
-
*/
|
|
239
|
-
static postBillingCreditsApply({ requestBody, }: {
|
|
240
|
-
requestBody: {
|
|
241
|
-
superbillId: string;
|
|
242
|
-
amount: number;
|
|
243
|
-
};
|
|
244
|
-
}): CancelablePromise<{
|
|
245
|
-
success: boolean;
|
|
246
|
-
data?: {
|
|
247
|
-
appliedAmount: number;
|
|
248
|
-
remainingBalance: number;
|
|
249
|
-
superbillStatus: string;
|
|
250
|
-
};
|
|
251
|
-
error?: string;
|
|
252
|
-
}>;
|
|
253
|
-
}
|
|
254
|
-
//# sourceMappingURL=BillingService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BillingService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/BillingService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,cAAc;IACvB;;;;;OAKG;WACW,yBAAyB,CAAC,EACpC,EAA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BAAkB,GAAG,YAAY,GAAG,YAAY,GAAG,SAAS,CAAC;YACnF,WAAW,EAAE,MAAM,CAAC;SACvB,CAAC;KACL,GAAG,iBAAiB,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE;YACH,EAAE,EAAE,MAAM,CAAC;YACX,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;QACF,KAAK,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAQF;;;;;OAKG;WACW,uBAAuB,CAAC,EAClC,WAAW,GACd,EAAE;QACC,WAAW,EAAE;YACT,WAAW,EAAE,MAAM,CAAC;YACpB,MAAM,EAAE,MAAM,CAAC;SAClB,CAAC;KACL,GAAG,iBAAiB,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE;YACH,aAAa,EAAE,MAAM,CAAC;YACtB,gBAAgB,EAAE,MAAM,CAAC;YACzB,eAAe,EAAE,MAAM,CAAC;SAC3B,CAAC;QACF,KAAK,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CAQL"}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class BillingService {
|
|
4
|
-
/**
|
|
5
|
-
* List superbill payments
|
|
6
|
-
* List all payment records for a superbill
|
|
7
|
-
* @returns any Response for status 200
|
|
8
|
-
* @throws ApiError
|
|
9
|
-
*/
|
|
10
|
-
static getSuperbillsByIdPayments({ id, }) {
|
|
11
|
-
return __request(OpenAPI, {
|
|
12
|
-
method: 'GET',
|
|
13
|
-
url: '/superbills/{id}/payments',
|
|
14
|
-
path: {
|
|
15
|
-
'id': id,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Record payment
|
|
21
|
-
* Record a manual payment on a superbill
|
|
22
|
-
* @returns any Response for status 200
|
|
23
|
-
* @throws ApiError
|
|
24
|
-
*/
|
|
25
|
-
static postSuperbillsByIdPayments({ id, requestBody, }) {
|
|
26
|
-
return __request(OpenAPI, {
|
|
27
|
-
method: 'POST',
|
|
28
|
-
url: '/superbills/{id}/payments',
|
|
29
|
-
path: {
|
|
30
|
-
'id': id,
|
|
31
|
-
},
|
|
32
|
-
body: requestBody,
|
|
33
|
-
mediaType: 'application/json',
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Mark superbill ready
|
|
38
|
-
* Mark a draft superbill as ready for billing
|
|
39
|
-
* @returns any Response for status 200
|
|
40
|
-
* @throws ApiError
|
|
41
|
-
*/
|
|
42
|
-
static postSuperbillsByIdReady({ id, }) {
|
|
43
|
-
return __request(OpenAPI, {
|
|
44
|
-
method: 'POST',
|
|
45
|
-
url: '/superbills/{id}/ready',
|
|
46
|
-
path: {
|
|
47
|
-
'id': id,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Void superbill
|
|
53
|
-
* Void a superbill with a reason
|
|
54
|
-
* @returns any Response for status 200
|
|
55
|
-
* @throws ApiError
|
|
56
|
-
*/
|
|
57
|
-
static postSuperbillsByIdVoid({ id, requestBody, }) {
|
|
58
|
-
return __request(OpenAPI, {
|
|
59
|
-
method: 'POST',
|
|
60
|
-
url: '/superbills/{id}/void',
|
|
61
|
-
path: {
|
|
62
|
-
'id': id,
|
|
63
|
-
},
|
|
64
|
-
body: requestBody,
|
|
65
|
-
mediaType: 'application/json',
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Process refund
|
|
70
|
-
* Process a refund on a superbill payment
|
|
71
|
-
* @returns any Response for status 200
|
|
72
|
-
* @throws ApiError
|
|
73
|
-
*/
|
|
74
|
-
static postSuperbillsByIdRefund({ id, requestBody, }) {
|
|
75
|
-
return __request(OpenAPI, {
|
|
76
|
-
method: 'POST',
|
|
77
|
-
url: '/superbills/{id}/refund',
|
|
78
|
-
path: {
|
|
79
|
-
'id': id,
|
|
80
|
-
},
|
|
81
|
-
body: requestBody,
|
|
82
|
-
mediaType: 'application/json',
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Set adjustment
|
|
87
|
-
* Set an adjustment amount and reason on a superbill
|
|
88
|
-
* @returns any Response for status 200
|
|
89
|
-
* @throws ApiError
|
|
90
|
-
*/
|
|
91
|
-
static postSuperbillsByIdAdjustment({ id, requestBody, }) {
|
|
92
|
-
return __request(OpenAPI, {
|
|
93
|
-
method: 'POST',
|
|
94
|
-
url: '/superbills/{id}/adjustment',
|
|
95
|
-
path: {
|
|
96
|
-
'id': id,
|
|
97
|
-
},
|
|
98
|
-
body: requestBody,
|
|
99
|
-
mediaType: 'application/json',
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Get billing metrics
|
|
104
|
-
* Get billing dashboard metrics
|
|
105
|
-
* @returns any Response for status 200
|
|
106
|
-
* @throws ApiError
|
|
107
|
-
*/
|
|
108
|
-
static getBillingMetrics() {
|
|
109
|
-
return __request(OpenAPI, {
|
|
110
|
-
method: 'GET',
|
|
111
|
-
url: '/billing/metrics',
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Export superbills CSV
|
|
116
|
-
* Export superbills data as CSV
|
|
117
|
-
* @returns any Response for status 200
|
|
118
|
-
* @throws ApiError
|
|
119
|
-
*/
|
|
120
|
-
static getBillingExportCsv({ dateRangeStart, dateRangeEnd, clientId, status, }) {
|
|
121
|
-
return __request(OpenAPI, {
|
|
122
|
-
method: 'GET',
|
|
123
|
-
url: '/billing/export/csv',
|
|
124
|
-
query: {
|
|
125
|
-
'dateRangeStart': dateRangeStart,
|
|
126
|
-
'dateRangeEnd': dateRangeEnd,
|
|
127
|
-
'clientId': clientId,
|
|
128
|
-
'status': status,
|
|
129
|
-
},
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Get credit balance
|
|
134
|
-
* Get client credit balance
|
|
135
|
-
* @returns any Response for status 200
|
|
136
|
-
* @throws ApiError
|
|
137
|
-
*/
|
|
138
|
-
static getBillingCreditsByClientIdBalance({ clientId, }) {
|
|
139
|
-
return __request(OpenAPI, {
|
|
140
|
-
method: 'GET',
|
|
141
|
-
url: '/billing/credits/{clientId}/balance',
|
|
142
|
-
path: {
|
|
143
|
-
'clientId': clientId,
|
|
144
|
-
},
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Get credit history
|
|
149
|
-
* Get client credit transaction history
|
|
150
|
-
* @returns any Response for status 200
|
|
151
|
-
* @throws ApiError
|
|
152
|
-
*/
|
|
153
|
-
static getBillingCreditsByClientIdHistory({ clientId, }) {
|
|
154
|
-
return __request(OpenAPI, {
|
|
155
|
-
method: 'GET',
|
|
156
|
-
url: '/billing/credits/{clientId}/history',
|
|
157
|
-
path: {
|
|
158
|
-
'clientId': clientId,
|
|
159
|
-
},
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Add credit
|
|
164
|
-
* Add credit to a client account
|
|
165
|
-
* @returns any Response for status 200
|
|
166
|
-
* @throws ApiError
|
|
167
|
-
*/
|
|
168
|
-
static postBillingCredits({ requestBody, }) {
|
|
169
|
-
return __request(OpenAPI, {
|
|
170
|
-
method: 'POST',
|
|
171
|
-
url: '/billing/credits',
|
|
172
|
-
body: requestBody,
|
|
173
|
-
mediaType: 'application/json',
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Apply credit
|
|
178
|
-
* Apply client credit to a superbill
|
|
179
|
-
* @returns any Response for status 200
|
|
180
|
-
* @throws ApiError
|
|
181
|
-
*/
|
|
182
|
-
static postBillingCreditsApply({ requestBody, }) {
|
|
183
|
-
return __request(OpenAPI, {
|
|
184
|
-
method: 'POST',
|
|
185
|
-
url: '/billing/credits/apply',
|
|
186
|
-
body: requestBody,
|
|
187
|
-
mediaType: 'application/json',
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
//# sourceMappingURL=BillingService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BillingService.js","sourceRoot":"","sources":["../../../src/generated/services/BillingService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,OAAO,cAAc;IACvB;;;;;OAKG;IACI,MAAM,CAAC,yBAAyB,CAAC,EACpC,EAAE,GAGL;QAoBG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,2BAA2B;YAChC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,0BAA0B,CAAC,EACrC,EAAE,EACF,WAAW,GAUd;QASG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2BAA2B;YAChC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,uBAAuB,CAAC,EAClC,EAAE,GAGL;QAQG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,wBAAwB;YAC7B,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,sBAAsB,CAAC,EACjC,EAAE,EACF,WAAW,GAMd;QAUG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,M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C;IACP,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,kCAAkC,CAAC,EAC7C,QAAQ,GAGX;QAOG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,qCAAqC;YAC1C,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,kCAAkC,CAAC,EAC7C,QAAQ,GAGX;QAcG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,qCAAqC;YAC1C,IAAI,EAAE;gBACF,UAAU,EAAE,QAAQ;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,kBAAkB,CAAC,EAC7B,WAAW,GAQd;QAQG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,kBAAkB;YACvB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,uBAAuB,CAAC,EAClC,WAAW,GAMd;QASG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,wBAAwB;YAC7B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
-
export declare class ClientPortalSuperbillsService {
|
|
3
|
-
/**
|
|
4
|
-
* List client superbills
|
|
5
|
-
* List all superbills for the authenticated client
|
|
6
|
-
* @throws ApiError
|
|
7
|
-
*/
|
|
8
|
-
static getClientPortalSuperbills({ limit, offset, }: {
|
|
9
|
-
limit?: string;
|
|
10
|
-
offset?: string;
|
|
11
|
-
}): CancelablePromise<void>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=ClientPortalSuperbillsService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientPortalSuperbillsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/ClientPortalSuperbillsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,6BAA6B;IACtC;;;;OAIG;WACW,yBAAyB,CAAC,EACpC,KAAK,EACL,MAAM,GACT,EAAE;QACC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB,GAAG,iBAAiB,CAAC,IAAI,CAAC;CAU9B"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class ClientPortalSuperbillsService {
|
|
4
|
-
/**
|
|
5
|
-
* List client superbills
|
|
6
|
-
* List all superbills for the authenticated client
|
|
7
|
-
* @throws ApiError
|
|
8
|
-
*/
|
|
9
|
-
static getClientPortalSuperbills({ limit, offset, }) {
|
|
10
|
-
return __request(OpenAPI, {
|
|
11
|
-
method: 'GET',
|
|
12
|
-
url: '/client-portal/superbills',
|
|
13
|
-
query: {
|
|
14
|
-
'limit': limit,
|
|
15
|
-
'offset': offset,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=ClientPortalSuperbillsService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientPortalSuperbillsService.js","sourceRoot":"","sources":["../../../src/generated/services/ClientPortalSuperbillsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,OAAO,6BAA6B;IACtC;;;;OAIG;IACI,MAAM,CAAC,yBAAyB,CAAC,EACpC,KAAK,EACL,MAAM,GAIT;QACG,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,2BAA2B;YAChC,KAAK,EAAE;gBACH,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE,MAAM;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
|