@connectedxm/client 0.2.3 → 0.2.5

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.mts CHANGED
@@ -56,26 +56,26 @@ interface BaseOrganization {
56
56
  id: string;
57
57
  slug: string;
58
58
  name: string;
59
- }
60
- declare enum Currency {
61
- USD = "USD"
62
- }
63
- interface Organization extends BaseOrganization {
64
59
  email: string;
65
- phone: string | null;
66
- website: string | null;
67
60
  address1: string | null;
68
61
  address2: string | null;
69
62
  city: string | null;
70
63
  state: string | null;
71
64
  country: string | null;
72
65
  zip: string | null;
66
+ logo: BaseImage | null;
67
+ logoId: string | null;
68
+ }
69
+ declare enum Currency {
70
+ USD = "USD"
71
+ }
72
+ interface Organization extends BaseOrganization {
73
+ phone: string | null;
74
+ website: string | null;
73
75
  primaryColor: string | null;
74
76
  secondaryColor: string | null;
75
77
  userPoolId: string;
76
78
  userPoolClientId: string;
77
- logo: BaseImage | null;
78
- logoId: string | null;
79
79
  currency: Currency;
80
80
  facebook: string | null;
81
81
  twitter: string | null;
@@ -1158,9 +1158,7 @@ interface Invoice extends BaseInvoice {
1158
1158
  intentId?: string;
1159
1159
  connectionId?: string;
1160
1160
  secret?: string;
1161
- account: ({
1162
- email: string;
1163
- } & BaseAccount) | null;
1161
+ account: Self | null;
1164
1162
  organization: BaseOrganization;
1165
1163
  notes: string | null;
1166
1164
  }
package/dist/index.d.ts CHANGED
@@ -56,26 +56,26 @@ interface BaseOrganization {
56
56
  id: string;
57
57
  slug: string;
58
58
  name: string;
59
- }
60
- declare enum Currency {
61
- USD = "USD"
62
- }
63
- interface Organization extends BaseOrganization {
64
59
  email: string;
65
- phone: string | null;
66
- website: string | null;
67
60
  address1: string | null;
68
61
  address2: string | null;
69
62
  city: string | null;
70
63
  state: string | null;
71
64
  country: string | null;
72
65
  zip: string | null;
66
+ logo: BaseImage | null;
67
+ logoId: string | null;
68
+ }
69
+ declare enum Currency {
70
+ USD = "USD"
71
+ }
72
+ interface Organization extends BaseOrganization {
73
+ phone: string | null;
74
+ website: string | null;
73
75
  primaryColor: string | null;
74
76
  secondaryColor: string | null;
75
77
  userPoolId: string;
76
78
  userPoolClientId: string;
77
- logo: BaseImage | null;
78
- logoId: string | null;
79
79
  currency: Currency;
80
80
  facebook: string | null;
81
81
  twitter: string | null;
@@ -1158,9 +1158,7 @@ interface Invoice extends BaseInvoice {
1158
1158
  intentId?: string;
1159
1159
  connectionId?: string;
1160
1160
  secret?: string;
1161
- account: ({
1162
- email: string;
1163
- } & BaseAccount) | null;
1161
+ account: Self | null;
1164
1162
  organization: BaseOrganization;
1165
1163
  notes: string | null;
1166
1164
  }
package/dist/index.js CHANGED
@@ -652,7 +652,7 @@ var Currency = /* @__PURE__ */ ((Currency2) => {
652
652
  return Currency2;
653
653
  })(Currency || {});
654
654
  var isTypeOrganization = (organization) => {
655
- return organization.email !== void 0;
655
+ return organization.createdAt !== void 0;
656
656
  };
657
657
  var isTypeAccountTier = (accountTier) => {
658
658
  return accountTier.description !== void 0;
package/dist/index.mjs CHANGED
@@ -82,7 +82,7 @@ var Currency = /* @__PURE__ */ ((Currency2) => {
82
82
  return Currency2;
83
83
  })(Currency || {});
84
84
  var isTypeOrganization = (organization) => {
85
- return organization.email !== void 0;
85
+ return organization.createdAt !== void 0;
86
86
  };
87
87
  var isTypeAccountTier = (accountTier) => {
88
88
  return accountTier.description !== void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {