@rinse-dental/open-dental 1.1.0 → 1.3.0
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/api/benefits.d.ts +62 -0
- package/dist/api/benefits.d.ts.map +1 -0
- package/dist/api/benefits.js +111 -0
- package/dist/api/insPlans.d.ts +62 -0
- package/dist/api/insPlans.d.ts.map +1 -0
- package/dist/api/insPlans.js +112 -0
- package/dist/api/patPlans.d.ts +2 -2
- package/dist/api/patPlans.js +2 -2
- package/dist/api/refAttaches.d.ts +57 -0
- package/dist/api/refAttaches.d.ts.map +1 -0
- package/dist/api/refAttaches.js +102 -0
- package/dist/api/referrals.d.ts +84 -0
- package/dist/api/referrals.d.ts.map +1 -0
- package/dist/api/referrals.js +156 -0
- package/dist/openDental.d.ts +22 -1
- package/dist/openDental.d.ts.map +1 -1
- package/dist/openDental.js +42 -1
- package/dist/types/benefitTypes.d.ts +67 -0
- package/dist/types/benefitTypes.d.ts.map +1 -0
- package/dist/types/benefitTypes.js +2 -0
- package/dist/types/insPlanTypes.d.ts +69 -0
- package/dist/types/insPlanTypes.d.ts.map +1 -0
- package/dist/types/insPlanTypes.js +2 -0
- package/dist/types/refAttachTypes.d.ts +59 -0
- package/dist/types/refAttachTypes.d.ts.map +1 -0
- package/dist/types/refAttachTypes.js +2 -0
- package/dist/types/referralTypes.d.ts +98 -0
- package/dist/types/referralTypes.d.ts.map +1 -0
- package/dist/types/referralTypes.js +2 -0
- package/package.json +1 -1
- package/release.sh +1 -1
- package/src/api/benefits.ts +155 -0
- package/src/api/insPlans.ts +158 -0
- package/src/api/patPlans.ts +2 -2
- package/src/api/refAttaches.ts +142 -0
- package/src/api/referrals.ts +222 -0
- package/src/openDental.ts +45 -1
- package/src/types/benefitTypes.ts +70 -0
- package/src/types/insPlanTypes.ts +72 -0
- package/src/types/refAttachTypes.ts +63 -0
- package/src/types/referralTypes.ts +102 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import HttpClient from "../utils/httpClient";
|
|
2
|
+
import { Referral, GetReferralsParams, CreateReferralParams, UpdateReferralParams } from "../types/referralTypes";
|
|
3
|
+
export default class Referrals {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Fetch a single referral by its ID.
|
|
8
|
+
* @param {number} ReferralNum - The unique identifier for the referal.
|
|
9
|
+
* @returns {Promise<Referral>} - The referral object.
|
|
10
|
+
* @throws {Error} - If `ReferralNum` is not provided.
|
|
11
|
+
*/
|
|
12
|
+
getReferral(ReferralNum: number): Promise<Referral>;
|
|
13
|
+
/**
|
|
14
|
+
* Fetch multiple referrals with optional filtering and pagination.
|
|
15
|
+
* @param {Object} params - The parameters for filtering and pagination.
|
|
16
|
+
* @param {"true" | "false"} [data.IsHidden] - Optional.
|
|
17
|
+
* @param {"true" | "false"} [data.NotPerson] - Optional.
|
|
18
|
+
* @param {"true" | "false"} [data.IsDoctor] - Optional.
|
|
19
|
+
* @param {"true" | "false"} [data.IsPreferred] - Optional.
|
|
20
|
+
* @param {"true" | "false"} [data.isPatient] - Optional.
|
|
21
|
+
* @param {string} [data.BusinessName] - Optional. Filter referrals by business name. Supports partial string matching.
|
|
22
|
+
* @param {number} [params.Offset] - Pagination offset for results.
|
|
23
|
+
* @returns {Promise<Referral[]>} - A list of referrals.
|
|
24
|
+
*/
|
|
25
|
+
getReferrals({ IsHidden, NotPerson, IsDoctor, IsPreferred, isPatient, BusinessName, Offset, }?: GetReferralsParams): Promise<Referral[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a new referral.
|
|
28
|
+
* @param {Object} data - The details of referral to create.
|
|
29
|
+
* @param {string} data.LName - Required. The last name of a referral source or referral source description.
|
|
30
|
+
* @param {number} [data.PatNum] - Optional. Only set this if the referral source is a patient. The provided LName must match the patient for whom the PatNum is given. This automatically populates the rest of the referral based on the given patient. If this is set, IsDoctor and NotPerson are set to "false", while isPatient will be true.
|
|
31
|
+
* @param {string} [data.FName] - Optional. The referral source's first name.
|
|
32
|
+
* @param {string} [data.MName] - Optional. The referral source's middle name or initial.
|
|
33
|
+
* @param {string} [data.SSN] - Optional. SSN, or TIN if UsingTIN is true. No punctuation.
|
|
34
|
+
* @param {"true" | "false"} [data.UsingTIN] - Optional. Either "true" or "false". Dictates whether SSN contains an SSN or TIN. Default "false".
|
|
35
|
+
* @param {number} [data.Specialty] - Optional. definition.DefNum where definition.Category=35 (ProviderSpecialty). If set, NotPerson will default to "false", IsDoctor will default to "true", and isPatient will be false.
|
|
36
|
+
* @param {string} [data.specialty] - Optional. Only set this if the Referral source is a Provider. This is a definition.ItemName where the DefCat is ProviderSpecialty(35). If this is set, IsDoctor will default to "true", NotPerson will default to "false", and isPatient will be false.
|
|
37
|
+
* @param {string} [data.ST] - Optional. The referral source's state. Two characters maximum.
|
|
38
|
+
* @param {string} [data.Telephone] - Optional. The referral source's phone number. Must be ten digits.
|
|
39
|
+
* @param {string} [data.Address] - Optional. The referral source's mailing address.
|
|
40
|
+
* @param {string} [data.Address2] - Optional. Additional info regarding the referral source's mailing address.
|
|
41
|
+
* @param {string} [data.City] - Optional. The referral source's city.
|
|
42
|
+
* @param {string} [data.Zip] - Optional. The referral source's ZIP code.
|
|
43
|
+
* @param {string} [data.Note] - Optional.
|
|
44
|
+
* @param {string} [data.Phone2] - Optional. Additional phone.
|
|
45
|
+
* @param {"true" | "false"} [data.NotPerson] - Optional. Either "true" or "false". Default "false", unless neither PatNum nor Specialty were supplied.
|
|
46
|
+
* @param {string} [data.Title] - Optional. The referral source's title.
|
|
47
|
+
* @param {string} [data.EMail] - Optional. The email address for the referral.
|
|
48
|
+
* @param {"true" | "false"} [data.IsDoctor] - Optional. Either "true" or "false". Default "false", unless a Specialty was supplied.
|
|
49
|
+
* @param {string} [data.BusinessName] - Optional. Name of the business that the referral works for.
|
|
50
|
+
* @param {string} [data.DisplayNote] - Optional. Shows in the Family Module's Patient Info grid.
|
|
51
|
+
* @returns {Promise<Referral>} - The created referral.
|
|
52
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
53
|
+
*/
|
|
54
|
+
createReferral({ LName, PatNum, FName, MName, SSN, UsingTIN, Specialty, specialty, ST, Telephone, Address, Address2, City, Zip, Note, Phone2, NotPerson, Title, EMail, IsDoctor, BusinessName, DisplayNote, }: CreateReferralParams): Promise<Referral>;
|
|
55
|
+
/**
|
|
56
|
+
* Update a referral.
|
|
57
|
+
* @param {Object} data - The details of referral to update.
|
|
58
|
+
* @param {number} data.ReferralNum - Required. PK of the referral to update.
|
|
59
|
+
* @param {string} data.LName - Required. The last name of a referral source or referral source description.
|
|
60
|
+
* @param {string} [data.FName] - Optional. The referral source's first name.
|
|
61
|
+
* @param {string} [data.MName] - Optional. The referral source's middle name or initial.
|
|
62
|
+
* @param {string} [data.SSN] - Optional. SSN, or TIN if UsingTIN is true. No punctuation.
|
|
63
|
+
* @param {"true" | "false"} [data.UsingTIN] - Optional. Either "true" or "false". Dictates whether SSN contains an SSN or TIN. Default "false".
|
|
64
|
+
* @param {number} [data.Specialty] - Optional. definition.DefNum where definition.Category=35 (ProviderSpecialty). If set, NotPerson will default to "false", IsDoctor will default to "true", and isPatient will be false.
|
|
65
|
+
* @param {string} [data.ST] - Optional. The referral source's state. Two characters maximum.
|
|
66
|
+
* @param {string} [data.Telephone] - Optional. The referral source's phone number. Must be ten digits.
|
|
67
|
+
* @param {string} [data.Address] - Optional. The referral source's mailing address.
|
|
68
|
+
* @param {string} [data.Address2] - Optional. Additional info regarding the referral source's mailing address.
|
|
69
|
+
* @param {string} [data.City] - Optional. The referral source's city.
|
|
70
|
+
* @param {string} [data.Zip] - Optional. The referral source's ZIP code.
|
|
71
|
+
* @param {string} [data.Note] - Optional.
|
|
72
|
+
* @param {string} [data.Phone2] - Optional. Additional phone.
|
|
73
|
+
* @param {"true" | "false"} [data.NotPerson] - Optional. Either "true" or "false". Default "false", unless neither PatNum nor Specialty were supplied.
|
|
74
|
+
* @param {string} [data.Title] - Optional. The referral source's title.
|
|
75
|
+
* @param {string} [data.EMail] - Optional. The email address for the referral.
|
|
76
|
+
* @param {"true" | "false"} [data.IsDoctor] - Optional. Either "true" or "false". Default "false", unless a Specialty was supplied.
|
|
77
|
+
* @param {string} [data.BusinessName] - Optional. Name of the business that the referral works for.
|
|
78
|
+
* @param {string} [data.DisplayNote] - Optional. Shows in the Family Module's Patient Info grid.
|
|
79
|
+
* @returns {Promise<Referral>} - The updated referral.
|
|
80
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
81
|
+
*/
|
|
82
|
+
updateReferral({ ReferralNum, LName, FName, MName, SSN, UsingTIN, Specialty, ST, Telephone, Address, Address2, City, Zip, Note, Phone2, NotPerson, Title, EMail, IsDoctor, BusinessName, DisplayNote, }: UpdateReferralParams): Promise<Referral>;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=referrals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referrals.d.ts","sourceRoot":"","sources":["../../src/api/referrals.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;OAKG;IACU,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAOhE;;;;;;;;;;;QAWI;IACS,YAAY,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,SAAS,EACT,YAAY,EACZ,MAAM,GACP,GAAE,kBAAuB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAchD;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACU,cAAc,CAAC,EAC1B,KAAK,EACL,MAAM,EACN,KAAK,EACL,KAAK,EACL,GAAG,EACH,QAAQ,EACR,SAAS,EACT,SAAS,EACT,EAAE,EACF,SAAS,EACT,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,MAAM,EACN,SAAS,EACT,KAAK,EACL,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,WAAW,GACZ,EAAG,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IA+B5C;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACU,cAAc,CAAC,EAC1B,WAAW,EACX,KAAK,EACL,KAAK,EACL,KAAK,EACL,GAAG,EACH,QAAQ,EACR,SAAS,EACT,EAAE,EACF,SAAS,EACT,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,MAAM,EACN,SAAS,EACT,KAAK,EACL,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,WAAW,GACZ,EAAG,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;CA4B7C"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Referrals {
|
|
4
|
+
httpClient;
|
|
5
|
+
constructor(httpClient) {
|
|
6
|
+
this.httpClient = httpClient;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Fetch a single referral by its ID.
|
|
10
|
+
* @param {number} ReferralNum - The unique identifier for the referal.
|
|
11
|
+
* @returns {Promise<Referral>} - The referral object.
|
|
12
|
+
* @throws {Error} - If `ReferralNum` is not provided.
|
|
13
|
+
*/
|
|
14
|
+
async getReferral(ReferralNum) {
|
|
15
|
+
if (!ReferralNum || typeof ReferralNum !== "number") {
|
|
16
|
+
throw new Error("Invalid data: ReferralNum is required.");
|
|
17
|
+
}
|
|
18
|
+
return this.httpClient.get(`/referrals/${ReferralNum}`);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Fetch multiple referrals with optional filtering and pagination.
|
|
22
|
+
* @param {Object} params - The parameters for filtering and pagination.
|
|
23
|
+
* @param {"true" | "false"} [data.IsHidden] - Optional.
|
|
24
|
+
* @param {"true" | "false"} [data.NotPerson] - Optional.
|
|
25
|
+
* @param {"true" | "false"} [data.IsDoctor] - Optional.
|
|
26
|
+
* @param {"true" | "false"} [data.IsPreferred] - Optional.
|
|
27
|
+
* @param {"true" | "false"} [data.isPatient] - Optional.
|
|
28
|
+
* @param {string} [data.BusinessName] - Optional. Filter referrals by business name. Supports partial string matching.
|
|
29
|
+
* @param {number} [params.Offset] - Pagination offset for results.
|
|
30
|
+
* @returns {Promise<Referral[]>} - A list of referrals.
|
|
31
|
+
*/
|
|
32
|
+
async getReferrals({ IsHidden, NotPerson, IsDoctor, IsPreferred, isPatient, BusinessName, Offset, } = {}) {
|
|
33
|
+
const params = {
|
|
34
|
+
IsHidden,
|
|
35
|
+
NotPerson,
|
|
36
|
+
IsDoctor,
|
|
37
|
+
IsPreferred,
|
|
38
|
+
isPatient,
|
|
39
|
+
BusinessName,
|
|
40
|
+
Offset,
|
|
41
|
+
};
|
|
42
|
+
return this.httpClient.get("/referrals", params);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Create a new referral.
|
|
46
|
+
* @param {Object} data - The details of referral to create.
|
|
47
|
+
* @param {string} data.LName - Required. The last name of a referral source or referral source description.
|
|
48
|
+
* @param {number} [data.PatNum] - Optional. Only set this if the referral source is a patient. The provided LName must match the patient for whom the PatNum is given. This automatically populates the rest of the referral based on the given patient. If this is set, IsDoctor and NotPerson are set to "false", while isPatient will be true.
|
|
49
|
+
* @param {string} [data.FName] - Optional. The referral source's first name.
|
|
50
|
+
* @param {string} [data.MName] - Optional. The referral source's middle name or initial.
|
|
51
|
+
* @param {string} [data.SSN] - Optional. SSN, or TIN if UsingTIN is true. No punctuation.
|
|
52
|
+
* @param {"true" | "false"} [data.UsingTIN] - Optional. Either "true" or "false". Dictates whether SSN contains an SSN or TIN. Default "false".
|
|
53
|
+
* @param {number} [data.Specialty] - Optional. definition.DefNum where definition.Category=35 (ProviderSpecialty). If set, NotPerson will default to "false", IsDoctor will default to "true", and isPatient will be false.
|
|
54
|
+
* @param {string} [data.specialty] - Optional. Only set this if the Referral source is a Provider. This is a definition.ItemName where the DefCat is ProviderSpecialty(35). If this is set, IsDoctor will default to "true", NotPerson will default to "false", and isPatient will be false.
|
|
55
|
+
* @param {string} [data.ST] - Optional. The referral source's state. Two characters maximum.
|
|
56
|
+
* @param {string} [data.Telephone] - Optional. The referral source's phone number. Must be ten digits.
|
|
57
|
+
* @param {string} [data.Address] - Optional. The referral source's mailing address.
|
|
58
|
+
* @param {string} [data.Address2] - Optional. Additional info regarding the referral source's mailing address.
|
|
59
|
+
* @param {string} [data.City] - Optional. The referral source's city.
|
|
60
|
+
* @param {string} [data.Zip] - Optional. The referral source's ZIP code.
|
|
61
|
+
* @param {string} [data.Note] - Optional.
|
|
62
|
+
* @param {string} [data.Phone2] - Optional. Additional phone.
|
|
63
|
+
* @param {"true" | "false"} [data.NotPerson] - Optional. Either "true" or "false". Default "false", unless neither PatNum nor Specialty were supplied.
|
|
64
|
+
* @param {string} [data.Title] - Optional. The referral source's title.
|
|
65
|
+
* @param {string} [data.EMail] - Optional. The email address for the referral.
|
|
66
|
+
* @param {"true" | "false"} [data.IsDoctor] - Optional. Either "true" or "false". Default "false", unless a Specialty was supplied.
|
|
67
|
+
* @param {string} [data.BusinessName] - Optional. Name of the business that the referral works for.
|
|
68
|
+
* @param {string} [data.DisplayNote] - Optional. Shows in the Family Module's Patient Info grid.
|
|
69
|
+
* @returns {Promise<Referral>} - The created referral.
|
|
70
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
71
|
+
*/
|
|
72
|
+
async createReferral({ LName, PatNum, FName, MName, SSN, UsingTIN, Specialty, specialty, ST, Telephone, Address, Address2, City, Zip, Note, Phone2, NotPerson, Title, EMail, IsDoctor, BusinessName, DisplayNote, }) {
|
|
73
|
+
if (!LName) {
|
|
74
|
+
throw new Error("Invalid data: LName is required.");
|
|
75
|
+
}
|
|
76
|
+
return this.httpClient.post("/referrals", {
|
|
77
|
+
LName,
|
|
78
|
+
PatNum,
|
|
79
|
+
FName,
|
|
80
|
+
MName,
|
|
81
|
+
SSN,
|
|
82
|
+
UsingTIN,
|
|
83
|
+
Specialty,
|
|
84
|
+
specialty,
|
|
85
|
+
ST,
|
|
86
|
+
Telephone,
|
|
87
|
+
Address,
|
|
88
|
+
Address2,
|
|
89
|
+
City,
|
|
90
|
+
Zip,
|
|
91
|
+
Note,
|
|
92
|
+
Phone2,
|
|
93
|
+
NotPerson,
|
|
94
|
+
Title,
|
|
95
|
+
EMail,
|
|
96
|
+
IsDoctor,
|
|
97
|
+
BusinessName,
|
|
98
|
+
DisplayNote,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Update a referral.
|
|
103
|
+
* @param {Object} data - The details of referral to update.
|
|
104
|
+
* @param {number} data.ReferralNum - Required. PK of the referral to update.
|
|
105
|
+
* @param {string} data.LName - Required. The last name of a referral source or referral source description.
|
|
106
|
+
* @param {string} [data.FName] - Optional. The referral source's first name.
|
|
107
|
+
* @param {string} [data.MName] - Optional. The referral source's middle name or initial.
|
|
108
|
+
* @param {string} [data.SSN] - Optional. SSN, or TIN if UsingTIN is true. No punctuation.
|
|
109
|
+
* @param {"true" | "false"} [data.UsingTIN] - Optional. Either "true" or "false". Dictates whether SSN contains an SSN or TIN. Default "false".
|
|
110
|
+
* @param {number} [data.Specialty] - Optional. definition.DefNum where definition.Category=35 (ProviderSpecialty). If set, NotPerson will default to "false", IsDoctor will default to "true", and isPatient will be false.
|
|
111
|
+
* @param {string} [data.ST] - Optional. The referral source's state. Two characters maximum.
|
|
112
|
+
* @param {string} [data.Telephone] - Optional. The referral source's phone number. Must be ten digits.
|
|
113
|
+
* @param {string} [data.Address] - Optional. The referral source's mailing address.
|
|
114
|
+
* @param {string} [data.Address2] - Optional. Additional info regarding the referral source's mailing address.
|
|
115
|
+
* @param {string} [data.City] - Optional. The referral source's city.
|
|
116
|
+
* @param {string} [data.Zip] - Optional. The referral source's ZIP code.
|
|
117
|
+
* @param {string} [data.Note] - Optional.
|
|
118
|
+
* @param {string} [data.Phone2] - Optional. Additional phone.
|
|
119
|
+
* @param {"true" | "false"} [data.NotPerson] - Optional. Either "true" or "false". Default "false", unless neither PatNum nor Specialty were supplied.
|
|
120
|
+
* @param {string} [data.Title] - Optional. The referral source's title.
|
|
121
|
+
* @param {string} [data.EMail] - Optional. The email address for the referral.
|
|
122
|
+
* @param {"true" | "false"} [data.IsDoctor] - Optional. Either "true" or "false". Default "false", unless a Specialty was supplied.
|
|
123
|
+
* @param {string} [data.BusinessName] - Optional. Name of the business that the referral works for.
|
|
124
|
+
* @param {string} [data.DisplayNote] - Optional. Shows in the Family Module's Patient Info grid.
|
|
125
|
+
* @returns {Promise<Referral>} - The updated referral.
|
|
126
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
127
|
+
*/
|
|
128
|
+
async updateReferral({ ReferralNum, LName, FName, MName, SSN, UsingTIN, Specialty, ST, Telephone, Address, Address2, City, Zip, Note, Phone2, NotPerson, Title, EMail, IsDoctor, BusinessName, DisplayNote, }) {
|
|
129
|
+
if (!ReferralNum || typeof ReferralNum !== "number") {
|
|
130
|
+
throw new Error("Invalid data: ReferralNum is required.");
|
|
131
|
+
}
|
|
132
|
+
return this.httpClient.put(`/referrals/${ReferralNum}`, {
|
|
133
|
+
LName,
|
|
134
|
+
FName,
|
|
135
|
+
MName,
|
|
136
|
+
SSN,
|
|
137
|
+
UsingTIN,
|
|
138
|
+
Specialty,
|
|
139
|
+
ST,
|
|
140
|
+
Telephone,
|
|
141
|
+
Address,
|
|
142
|
+
Address2,
|
|
143
|
+
City,
|
|
144
|
+
Zip,
|
|
145
|
+
Note,
|
|
146
|
+
Phone2,
|
|
147
|
+
NotPerson,
|
|
148
|
+
Title,
|
|
149
|
+
EMail,
|
|
150
|
+
IsDoctor,
|
|
151
|
+
BusinessName,
|
|
152
|
+
DisplayNote,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.default = Referrals;
|
package/dist/openDental.d.ts
CHANGED
|
@@ -15,6 +15,11 @@ import DiscountPlanSubs from "./api/discountPlanSubs";
|
|
|
15
15
|
import FamilyModules from "./api/familyModules";
|
|
16
16
|
import InsSubs from "./api/insSubs";
|
|
17
17
|
import PatPlans from "./api/patPlans";
|
|
18
|
+
import LabCases from "./api/labCases";
|
|
19
|
+
import Referrals from "./api/referrals";
|
|
20
|
+
import RefAttaches from "./api/refAttaches";
|
|
21
|
+
import InsPlans from "./api/insPlans";
|
|
22
|
+
import Benefits from "./api/benefits";
|
|
18
23
|
declare class OpenDental {
|
|
19
24
|
private static httpClient;
|
|
20
25
|
/**
|
|
@@ -92,7 +97,23 @@ declare class OpenDental {
|
|
|
92
97
|
/**
|
|
93
98
|
* Create a new instance of the LabCases API.
|
|
94
99
|
*/
|
|
95
|
-
static LabCases():
|
|
100
|
+
static LabCases(): LabCases;
|
|
101
|
+
/**
|
|
102
|
+
* Create a new instance of the Referrals API.
|
|
103
|
+
*/
|
|
104
|
+
static Referrals(): Referrals;
|
|
105
|
+
/**
|
|
106
|
+
* Create a new instance of the LabCases API.
|
|
107
|
+
*/
|
|
108
|
+
static RefAttaches(): RefAttaches;
|
|
109
|
+
/**
|
|
110
|
+
* Create a new instance of the LabCases API.
|
|
111
|
+
*/
|
|
112
|
+
static InsPlans(): InsPlans;
|
|
113
|
+
/**
|
|
114
|
+
* Create a new instance of the LabCases API.
|
|
115
|
+
*/
|
|
116
|
+
static Benefits(): Benefits;
|
|
96
117
|
}
|
|
97
118
|
export { OpenDental };
|
|
98
119
|
//# sourceMappingURL=openDental.d.ts.map
|
package/dist/openDental.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openDental.d.ts","sourceRoot":"","sources":["../src/openDental.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"openDental.d.ts","sourceRoot":"","sources":["../src/openDental.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,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importDefault(require("./api/discountPlanSubs"));
|
|
|
22
22
|
const familyModules_1 = __importDefault(require("./api/familyModules"));
|
|
23
23
|
const insSubs_1 = __importDefault(require("./api/insSubs"));
|
|
24
24
|
const patPlans_1 = __importDefault(require("./api/patPlans"));
|
|
25
|
+
const labCases_1 = __importDefault(require("./api/labCases"));
|
|
26
|
+
const referrals_1 = __importDefault(require("./api/referrals"));
|
|
27
|
+
const refAttaches_1 = __importDefault(require("./api/refAttaches"));
|
|
28
|
+
const insPlans_1 = __importDefault(require("./api/insPlans"));
|
|
29
|
+
const benefits_1 = __importDefault(require("./api/benefits"));
|
|
25
30
|
class OpenDental {
|
|
26
31
|
static httpClient;
|
|
27
32
|
/**
|
|
@@ -195,7 +200,43 @@ class OpenDental {
|
|
|
195
200
|
if (!this.httpClient) {
|
|
196
201
|
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
197
202
|
}
|
|
198
|
-
return new
|
|
203
|
+
return new labCases_1.default(this.httpClient);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Create a new instance of the Referrals API.
|
|
207
|
+
*/
|
|
208
|
+
static Referrals() {
|
|
209
|
+
if (!this.httpClient) {
|
|
210
|
+
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
211
|
+
}
|
|
212
|
+
return new referrals_1.default(this.httpClient);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Create a new instance of the LabCases API.
|
|
216
|
+
*/
|
|
217
|
+
static RefAttaches() {
|
|
218
|
+
if (!this.httpClient) {
|
|
219
|
+
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
220
|
+
}
|
|
221
|
+
return new refAttaches_1.default(this.httpClient);
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Create a new instance of the LabCases API.
|
|
225
|
+
*/
|
|
226
|
+
static InsPlans() {
|
|
227
|
+
if (!this.httpClient) {
|
|
228
|
+
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
229
|
+
}
|
|
230
|
+
return new insPlans_1.default(this.httpClient);
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Create a new instance of the LabCases API.
|
|
234
|
+
*/
|
|
235
|
+
static Benefits() {
|
|
236
|
+
if (!this.httpClient) {
|
|
237
|
+
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
238
|
+
}
|
|
239
|
+
return new benefits_1.default(this.httpClient);
|
|
199
240
|
}
|
|
200
241
|
}
|
|
201
242
|
exports.OpenDental = OpenDental;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://www.opendental.com/site/apibenefits.html
|
|
3
|
+
*/
|
|
4
|
+
export interface Benefit {
|
|
5
|
+
BenefitNum?: number;
|
|
6
|
+
PlanNum?: number;
|
|
7
|
+
PatPlanNum?: number;
|
|
8
|
+
CovCatNum?: number;
|
|
9
|
+
BenefitType?: "ActiveCoverage" | "CoInsurance" | "Deductible" | "CoPayment" | "Exclusions" | "Limitations" | "WaitingPeriod";
|
|
10
|
+
Percent?: number;
|
|
11
|
+
MonetaryAmt?: number;
|
|
12
|
+
TimePeriod?: "None" | "ServiceYear" | "CalendarYear" | "Lifetime" | "Years" | "NumberInLast12Months";
|
|
13
|
+
QuantityQualifier?: "None" | "NumberOfServices" | "AgeLimit" | "Visits" | "Years" | "Months";
|
|
14
|
+
Quantity?: number;
|
|
15
|
+
CodeNum?: number;
|
|
16
|
+
procCode?: string;
|
|
17
|
+
CoverageLevel?: "None" | "Individual" | "Family";
|
|
18
|
+
SecDateTEntry?: string;
|
|
19
|
+
SecDateTEdit?: string;
|
|
20
|
+
CodeGroupNum?: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Gets a list of PatPlans that meet a set of search criteria.
|
|
24
|
+
* @see https://www.opendental.com/site/apibenefits.html
|
|
25
|
+
*/
|
|
26
|
+
export interface GetBenefitsParams {
|
|
27
|
+
PlanNum?: number;
|
|
28
|
+
PatPlanNum?: number;
|
|
29
|
+
Offset?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Parameters for creating a new insplan.
|
|
33
|
+
* @see https://www.opendental.com/site/apibenefits.html
|
|
34
|
+
*/
|
|
35
|
+
export interface CreateBenefitParams {
|
|
36
|
+
PlanNum?: number;
|
|
37
|
+
PatPlanNum?: number;
|
|
38
|
+
BenefitType: "ActiveCoverage" | "CoInsurance" | "Deductible" | "CoPayment" | "Exclusions" | "Limitations" | "WaitingPeriod";
|
|
39
|
+
CoverageLevel: "None" | "Individual" | "Family";
|
|
40
|
+
CovCatNum?: number;
|
|
41
|
+
Percent?: number;
|
|
42
|
+
MonetaryAmt?: number;
|
|
43
|
+
TimePeriod?: "None" | "ServiceYear" | "CalendarYear" | "Lifetime" | "Years" | "NumberInLast12Months";
|
|
44
|
+
QuantityQualifier?: "None" | "NumberOfServices" | "AgeLimit" | "Visits" | "Years" | "Months";
|
|
45
|
+
Quantity?: number;
|
|
46
|
+
CodeNum?: number;
|
|
47
|
+
procCode?: string;
|
|
48
|
+
CodeGroupNum?: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Parameters to update an insplan.
|
|
52
|
+
* @see https://www.opendental.com/site/apibenefits.html
|
|
53
|
+
*/
|
|
54
|
+
export interface UpdateBenefitParams {
|
|
55
|
+
BenefitNum: number;
|
|
56
|
+
CovCatNum?: number;
|
|
57
|
+
BenefitType?: "ActiveCoverage" | "CoInsurance" | "Deductible" | "CoPayment" | "Exclusions" | "Limitations" | "WaitingPeriod";
|
|
58
|
+
Percent?: number;
|
|
59
|
+
MonetaryAmt?: number;
|
|
60
|
+
TimePeriod?: "None" | "ServiceYear" | "CalendarYear" | "Lifetime" | "Years" | "NumberInLast12Months";
|
|
61
|
+
QuantityQualifier?: "None" | "NumberOfServices" | "AgeLimit" | "Visits" | "Years" | "Months";
|
|
62
|
+
Quantity?: number;
|
|
63
|
+
CodeNum?: number;
|
|
64
|
+
procCode?: string;
|
|
65
|
+
CoverageLevel?: "None" | "Individual" | "Family";
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=benefitTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"benefitTypes.d.ts","sourceRoot":"","sources":["../../src/types/benefitTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,gBAAgB,GAAG,aAAa,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,GAAG,aAAa,GAAG,eAAe,CAAC;IAC7H,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,OAAO,GAAG,sBAAsB,CAAC;IACrG,iBAAiB,CAAC,EAAE,MAAM,GAAG,kBAAkB,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC7F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAC;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;A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,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAC;CAClD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://www.opendental.com/site/apiinsplans.html
|
|
3
|
+
*/
|
|
4
|
+
export interface InsPlan {
|
|
5
|
+
PlanNum?: number;
|
|
6
|
+
GroupName?: string;
|
|
7
|
+
GroupNum?: string;
|
|
8
|
+
PlanNote?: string;
|
|
9
|
+
FeeSched?: number;
|
|
10
|
+
PlanType?: "" | "p" | "f" | "c";
|
|
11
|
+
ClaimFormNum?: number;
|
|
12
|
+
CopayFeeSched?: number;
|
|
13
|
+
EmployerNum?: number;
|
|
14
|
+
CarrierNum?: number;
|
|
15
|
+
CodeSubstNone?: "true" | "false";
|
|
16
|
+
IsHidden?: "true" | "false";
|
|
17
|
+
MonthRenew?: number;
|
|
18
|
+
SecUserNumEntry?: number;
|
|
19
|
+
SecDateEntry?: string;
|
|
20
|
+
SecDateTEdit?: string;
|
|
21
|
+
IsBlueBookEnabled?: "true" | "false";
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Gets a list of PatPlans that meet a set of search criteria.
|
|
25
|
+
* @see https://www.opendental.com/site/apiinsplans.html
|
|
26
|
+
*/
|
|
27
|
+
export interface GetInsPlansParams {
|
|
28
|
+
PlanType?: "percentage" | "p" | "f" | "c";
|
|
29
|
+
CarrierNum?: number;
|
|
30
|
+
Offset?: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Parameters for creating a new insplan.
|
|
34
|
+
* @see https://www.opendental.com/site/apiinsplans.html
|
|
35
|
+
*/
|
|
36
|
+
export interface CreateInsPlanParams {
|
|
37
|
+
CarrierNum: number;
|
|
38
|
+
GroupName?: string;
|
|
39
|
+
GroupNum?: string;
|
|
40
|
+
PlanNote?: string;
|
|
41
|
+
FeeSched?: number;
|
|
42
|
+
PlanType?: "" | "p" | "f" | "c";
|
|
43
|
+
CopayFeeSched?: number;
|
|
44
|
+
EmployerNum?: number;
|
|
45
|
+
CodeSubstNone?: "true" | "false";
|
|
46
|
+
IsHidden?: "true" | "false";
|
|
47
|
+
MonthRenew?: number;
|
|
48
|
+
IsBlueBookEnabled?: "true" | "false";
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Parameters to update an insplan.
|
|
52
|
+
* @see https://www.opendental.com/site/apiinsplans.html
|
|
53
|
+
*/
|
|
54
|
+
export interface UpdateInsPlanParams {
|
|
55
|
+
PlanNum: number;
|
|
56
|
+
GroupName?: string;
|
|
57
|
+
GroupNum?: string;
|
|
58
|
+
PlanNote?: string;
|
|
59
|
+
FeeSched?: number;
|
|
60
|
+
PlanType?: "" | "p" | "f" | "c";
|
|
61
|
+
CopayFeeSched?: number;
|
|
62
|
+
EmployerNum?: number;
|
|
63
|
+
CarrierNum: number;
|
|
64
|
+
CodeSubstNone?: "true" | "false";
|
|
65
|
+
IsHidden?: "true" | "false";
|
|
66
|
+
MonthRenew?: number;
|
|
67
|
+
IsBlueBookEnabled?: "true" | "false";
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=insPlanTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insPlanTypes.d.ts","sourceRoot":"","sources":["../../src/types/insPlanTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAA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ClC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an RefAttaches in the Open Dental system. Attaches a patient to a referral source.
|
|
3
|
+
* @see https://www.opendental.com/site/apirefattaches.html
|
|
4
|
+
*/
|
|
5
|
+
export interface RefAttach {
|
|
6
|
+
RefAttachNum?: number;
|
|
7
|
+
ReferralNum?: number;
|
|
8
|
+
referralName?: string;
|
|
9
|
+
PatNum?: number;
|
|
10
|
+
ItemOrder?: number;
|
|
11
|
+
RefDate?: string;
|
|
12
|
+
ReferralType?: "RefTo" | "RefFrom" | "RefCustom";
|
|
13
|
+
RefToStatus?: "None" | "Declined" | "Scheduled" | "Consulted" | "InTreatment" | "Complete";
|
|
14
|
+
Note?: string;
|
|
15
|
+
IsTransitionOfCare?: "true" | "false";
|
|
16
|
+
ProcNum?: number;
|
|
17
|
+
DateProcComplete?: string;
|
|
18
|
+
ProvNum?: number;
|
|
19
|
+
DateTStamp?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GetRefAttachesParams {
|
|
22
|
+
PatNum?: number;
|
|
23
|
+
Offset?: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Attaches a patient to a referral source. The referral source must be specified by either ReferralNum or referralName.
|
|
27
|
+
* Before calling this method, use Referrals GET to find the ReferralNum of an existing referral source.
|
|
28
|
+
* Alternatively, specify a referralName to search the LName of existing referrals for an exact match.
|
|
29
|
+
* If a match is not found, a new referral with that name is created and used.
|
|
30
|
+
*/
|
|
31
|
+
export interface CreateRefAttachParams {
|
|
32
|
+
PatNum: number;
|
|
33
|
+
ReferralNum?: number;
|
|
34
|
+
referralName?: string;
|
|
35
|
+
RefDate?: string;
|
|
36
|
+
ReferralType?: "RefTo" | "RefFrom" | "RefCustom";
|
|
37
|
+
RefToStatus?: "None" | "Declined" | "Scheduled" | "Consulted" | "InTreatment" | "Complete";
|
|
38
|
+
Note?: string;
|
|
39
|
+
IsTransitionOfCare?: "true" | "false";
|
|
40
|
+
ProcNum?: number;
|
|
41
|
+
DateProcComplete?: string;
|
|
42
|
+
ProvNum?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Updates an existing refattach.
|
|
46
|
+
*/
|
|
47
|
+
export interface UpdateRefAttachParams {
|
|
48
|
+
RefAttachNum: number;
|
|
49
|
+
ReferralNum?: number;
|
|
50
|
+
RefDate?: string;
|
|
51
|
+
ReferralType?: "RefTo" | "RefFrom" | "RefCustom";
|
|
52
|
+
RefToStatus?: "None" | "Declined" | "Scheduled" | "Consulted" | "InTreatment" | "Complete";
|
|
53
|
+
Note?: string;
|
|
54
|
+
IsTransitionOfCare?: "true" | "false";
|
|
55
|
+
ProcNum?: number;
|
|
56
|
+
DateProcComplete?: string;
|
|
57
|
+
ProvNum?: number;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=refAttachTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refAttachTypes.d.ts","sourceRoot":"","sources":["../../src/types/refAttachTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,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