@blazeo.com/calendar-client 1.0.44 → 1.0.45

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 CHANGED
@@ -216,7 +216,7 @@ export const CompanyModel: {
216
216
  get(companyKey: string): Promise<unknown>;
217
217
  getAll(): Promise<unknown[] | null>;
218
218
  save(payload: object): Promise<unknown>;
219
- purchasePhoneNumber(companyId: string): Promise<{
219
+ purchasePhoneNumber(companyKey: string, companyId: string): Promise<{
220
220
  status: string;
221
221
  data?: PhoneNumberPurchaseResult;
222
222
  message?: string;
package/dist/index.js CHANGED
@@ -1984,9 +1984,9 @@ CompanyModel.save = async (payload) => {
1984
1984
  }
1985
1985
  return null;
1986
1986
  };
1987
- CompanyModel.purchasePhoneNumber = async (companyId) => {
1987
+ CompanyModel.purchasePhoneNumber = async (companyKey, companyId) => {
1988
1988
  const { reqGet } = createRequestHelpersFromEnv(getConfig());
1989
- return reqGet("/Company/PhoneNumber/Purchase", { company_id: companyId });
1989
+ return reqGet("/Company/PhoneNumber/Purchase", { company_key: companyKey, company_id: companyId });
1990
1990
  };
1991
1991
  var Company_default = CompanyModel;
1992
1992
 
package/dist/index.mjs CHANGED
@@ -1909,9 +1909,9 @@ CompanyModel.save = async (payload) => {
1909
1909
  }
1910
1910
  return null;
1911
1911
  };
1912
- CompanyModel.purchasePhoneNumber = async (companyId) => {
1912
+ CompanyModel.purchasePhoneNumber = async (companyKey, companyId) => {
1913
1913
  const { reqGet } = createRequestHelpersFromEnv(getConfig());
1914
- return reqGet("/Company/PhoneNumber/Purchase", { company_id: companyId });
1914
+ return reqGet("/Company/PhoneNumber/Purchase", { company_key: companyKey, company_id: companyId });
1915
1915
  };
1916
1916
  var Company_default = CompanyModel;
1917
1917
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazeo.com/calendar-client",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "description": "Blazeo Calendar / Appointment API client with MobX State Tree models",
5
5
  "exports": {
6
6
  ".": {