@blazeo.com/calendar-client 1.0.40 → 1.0.42
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/index.d.ts +31 -0
- package/dist/index.js +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -181,10 +181,41 @@ export const SettingModel: {
|
|
|
181
181
|
uploadLogo(calendarId: string, file: File | Blob): Promise<unknown>;
|
|
182
182
|
create(snapshot: object, options?: { env?: object }): unknown;
|
|
183
183
|
};
|
|
184
|
+
export type PhoneNumberPurchaseData = {
|
|
185
|
+
formatted?: string;
|
|
186
|
+
number?: string;
|
|
187
|
+
phoneNumber?: string;
|
|
188
|
+
phoneNumbers?: string;
|
|
189
|
+
status?: number;
|
|
190
|
+
Formatted?: string;
|
|
191
|
+
Number?: string;
|
|
192
|
+
PhoneNumber?: string;
|
|
193
|
+
PhoneNumbers?: string;
|
|
194
|
+
Status?: number;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
export type PhoneNumberPurchaseResult = {
|
|
198
|
+
data?: PhoneNumberPurchaseData;
|
|
199
|
+
error?: string;
|
|
200
|
+
isInnerException?: boolean;
|
|
201
|
+
stackTrace?: string;
|
|
202
|
+
success?: boolean;
|
|
203
|
+
Data?: PhoneNumberPurchaseData;
|
|
204
|
+
Error?: string;
|
|
205
|
+
IsInnerException?: boolean;
|
|
206
|
+
StackTrace?: string;
|
|
207
|
+
Success?: boolean;
|
|
208
|
+
};
|
|
209
|
+
|
|
184
210
|
export const CompanyModel: {
|
|
185
211
|
get(companyKey: string): Promise<unknown>;
|
|
186
212
|
getAll(): Promise<unknown[] | null>;
|
|
187
213
|
save(payload: object): Promise<unknown>;
|
|
214
|
+
purchasePhoneNumber(companyKey: string, companyId: string): Promise<{
|
|
215
|
+
status: string;
|
|
216
|
+
data?: PhoneNumberPurchaseResult;
|
|
217
|
+
message?: string;
|
|
218
|
+
}>;
|
|
188
219
|
create(snapshot: object, options?: { env?: object }): unknown;
|
|
189
220
|
};
|
|
190
221
|
export const AssetModel: {
|
package/dist/index.js
CHANGED
|
@@ -1962,6 +1962,13 @@ CompanyModel.save = async (payload) => {
|
|
|
1962
1962
|
}
|
|
1963
1963
|
return null;
|
|
1964
1964
|
};
|
|
1965
|
+
CompanyModel.purchasePhoneNumber = async (companyKey, companyId) => {
|
|
1966
|
+
const { reqGet } = createRequestHelpersFromEnv(getConfig());
|
|
1967
|
+
return reqGet("/Company/PhoneNumber/Purchase", {
|
|
1968
|
+
company_key: companyKey,
|
|
1969
|
+
company_id: companyId
|
|
1970
|
+
});
|
|
1971
|
+
};
|
|
1965
1972
|
var Company_default = CompanyModel;
|
|
1966
1973
|
|
|
1967
1974
|
// src/models/appointment/Asset.js
|
package/dist/index.mjs
CHANGED
|
@@ -1888,6 +1888,13 @@ CompanyModel.save = async (payload) => {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
return null;
|
|
1890
1890
|
};
|
|
1891
|
+
CompanyModel.purchasePhoneNumber = async (companyKey, companyId) => {
|
|
1892
|
+
const { reqGet } = createRequestHelpersFromEnv(getConfig());
|
|
1893
|
+
return reqGet("/Company/PhoneNumber/Purchase", {
|
|
1894
|
+
company_key: companyKey,
|
|
1895
|
+
company_id: companyId
|
|
1896
|
+
});
|
|
1897
|
+
};
|
|
1891
1898
|
var Company_default = CompanyModel;
|
|
1892
1899
|
|
|
1893
1900
|
// src/models/appointment/Asset.js
|