@blazeo.com/calendar-client 1.0.45 → 1.0.46
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.js +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1924,6 +1924,8 @@ var CompanyModel = import_mobx_state_tree15.types.model("Company", {
|
|
|
1924
1924
|
id: import_mobx_state_tree15.types.optional(import_mobx_state_tree15.types.maybeNull(import_mobx_state_tree15.types.number), null),
|
|
1925
1925
|
companyKey: import_mobx_state_tree15.types.identifier,
|
|
1926
1926
|
companyName: import_mobx_state_tree15.types.optional(import_mobx_state_tree15.types.string, ""),
|
|
1927
|
+
purchasedPhone: import_mobx_state_tree15.types.optional(import_mobx_state_tree15.types.string, ""),
|
|
1928
|
+
purchasedPhoneStatus: import_mobx_state_tree15.types.optional(import_mobx_state_tree15.types.number, 0),
|
|
1927
1929
|
createdOn: import_mobx_state_tree15.types.optional(import_mobx_state_tree15.types.maybeNull(import_mobx_state_tree15.types.string), null),
|
|
1928
1930
|
modifiedOn: import_mobx_state_tree15.types.optional(import_mobx_state_tree15.types.maybeNull(import_mobx_state_tree15.types.string), null)
|
|
1929
1931
|
}).actions((self) => {
|
|
@@ -1948,8 +1950,11 @@ function mapFromApi4(d) {
|
|
|
1948
1950
|
if (!d) return d;
|
|
1949
1951
|
const pick2 = (...keys) => keys.reduce((v, k) => v ?? d[k], void 0);
|
|
1950
1952
|
return {
|
|
1953
|
+
id: pick2("id", "Id") ?? null,
|
|
1951
1954
|
companyKey: String(pick2("companyKey", "CompanyKey", "company_key") ?? ""),
|
|
1952
1955
|
companyName: pick2("companyName", "CompanyName", "company_name") ?? "",
|
|
1956
|
+
purchasedPhone: pick2("purchasedPhone", "PurchasedPhone", "purchased_phone") ?? "",
|
|
1957
|
+
purchasedPhoneStatus: pick2("purchasedPhoneStatus", "PurchasedPhoneStatus", "purchased_phone_status") ?? 0,
|
|
1953
1958
|
createdOn: pick2("createdOn", "CreatedOn", "created_on") ?? null,
|
|
1954
1959
|
modifiedOn: pick2("modifiedOn", "ModifiedOn", "modified_on") ?? null
|
|
1955
1960
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1849,6 +1849,8 @@ var CompanyModel = types15.model("Company", {
|
|
|
1849
1849
|
id: types15.optional(types15.maybeNull(types15.number), null),
|
|
1850
1850
|
companyKey: types15.identifier,
|
|
1851
1851
|
companyName: types15.optional(types15.string, ""),
|
|
1852
|
+
purchasedPhone: types15.optional(types15.string, ""),
|
|
1853
|
+
purchasedPhoneStatus: types15.optional(types15.number, 0),
|
|
1852
1854
|
createdOn: types15.optional(types15.maybeNull(types15.string), null),
|
|
1853
1855
|
modifiedOn: types15.optional(types15.maybeNull(types15.string), null)
|
|
1854
1856
|
}).actions((self) => {
|
|
@@ -1873,8 +1875,11 @@ function mapFromApi4(d) {
|
|
|
1873
1875
|
if (!d) return d;
|
|
1874
1876
|
const pick2 = (...keys) => keys.reduce((v, k) => v ?? d[k], void 0);
|
|
1875
1877
|
return {
|
|
1878
|
+
id: pick2("id", "Id") ?? null,
|
|
1876
1879
|
companyKey: String(pick2("companyKey", "CompanyKey", "company_key") ?? ""),
|
|
1877
1880
|
companyName: pick2("companyName", "CompanyName", "company_name") ?? "",
|
|
1881
|
+
purchasedPhone: pick2("purchasedPhone", "PurchasedPhone", "purchased_phone") ?? "",
|
|
1882
|
+
purchasedPhoneStatus: pick2("purchasedPhoneStatus", "PurchasedPhoneStatus", "purchased_phone_status") ?? 0,
|
|
1878
1883
|
createdOn: pick2("createdOn", "CreatedOn", "created_on") ?? null,
|
|
1879
1884
|
modifiedOn: pick2("modifiedOn", "ModifiedOn", "modified_on") ?? null
|
|
1880
1885
|
};
|