@blazeo.com/calendar-client 1.0.41 → 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 CHANGED
@@ -211,7 +211,7 @@ export const CompanyModel: {
211
211
  get(companyKey: string): Promise<unknown>;
212
212
  getAll(): Promise<unknown[] | null>;
213
213
  save(payload: object): Promise<unknown>;
214
- purchasePhoneNumber(companyId: string): Promise<{
214
+ purchasePhoneNumber(companyKey: string, companyId: string): Promise<{
215
215
  status: string;
216
216
  data?: PhoneNumberPurchaseResult;
217
217
  message?: string;
package/dist/index.js CHANGED
@@ -1962,9 +1962,12 @@ CompanyModel.save = async (payload) => {
1962
1962
  }
1963
1963
  return null;
1964
1964
  };
1965
- CompanyModel.purchasePhoneNumber = async (companyId) => {
1965
+ CompanyModel.purchasePhoneNumber = async (companyKey, companyId) => {
1966
1966
  const { reqGet } = createRequestHelpersFromEnv(getConfig());
1967
- return reqGet("/Company/PhoneNumber/Purchase", { company_id: companyId });
1967
+ return reqGet("/Company/PhoneNumber/Purchase", {
1968
+ company_key: companyKey,
1969
+ company_id: companyId
1970
+ });
1968
1971
  };
1969
1972
  var Company_default = CompanyModel;
1970
1973
 
package/dist/index.mjs CHANGED
@@ -1888,9 +1888,12 @@ CompanyModel.save = async (payload) => {
1888
1888
  }
1889
1889
  return null;
1890
1890
  };
1891
- CompanyModel.purchasePhoneNumber = async (companyId) => {
1891
+ CompanyModel.purchasePhoneNumber = async (companyKey, companyId) => {
1892
1892
  const { reqGet } = createRequestHelpersFromEnv(getConfig());
1893
- return reqGet("/Company/PhoneNumber/Purchase", { company_id: companyId });
1893
+ return reqGet("/Company/PhoneNumber/Purchase", {
1894
+ company_key: companyKey,
1895
+ company_id: companyId
1896
+ });
1894
1897
  };
1895
1898
  var Company_default = CompanyModel;
1896
1899
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazeo.com/calendar-client",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "Blazeo Calendar / Appointment API client with MobX State Tree models",
5
5
  "exports": {
6
6
  ".": {