skapi-js 1.0.88 → 1.0.90
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/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/js/Types.d.ts +13 -27
- package/js/main/skapi.d.ts +1 -1
- package/js/main/skapi.js +1 -1
- package/js/methods/subscription.d.ts +1 -1
- package/package.json +1 -1
package/js/Types.d.ts
CHANGED
|
@@ -97,6 +97,13 @@ export type Newsletters = {
|
|
|
97
97
|
bounced: string;
|
|
98
98
|
url: string;
|
|
99
99
|
};
|
|
100
|
+
type UserProfilePublicSettings = {
|
|
101
|
+
email_public?: boolean;
|
|
102
|
+
phone_number_public?: boolean;
|
|
103
|
+
address_public?: boolean;
|
|
104
|
+
gender_public?: boolean;
|
|
105
|
+
birthdate_public?: boolean;
|
|
106
|
+
};
|
|
100
107
|
export type UserAttributes = {
|
|
101
108
|
name?: string;
|
|
102
109
|
email?: string;
|
|
@@ -110,11 +117,6 @@ export type UserAttributes = {
|
|
|
110
117
|
};
|
|
111
118
|
gender?: string;
|
|
112
119
|
birthdate?: string;
|
|
113
|
-
email_public?: boolean;
|
|
114
|
-
phone_number_public?: boolean;
|
|
115
|
-
address_public?: boolean;
|
|
116
|
-
gender_public?: boolean;
|
|
117
|
-
birthdate_public?: boolean;
|
|
118
120
|
misc?: string;
|
|
119
121
|
picture?: string;
|
|
120
122
|
profile?: string;
|
|
@@ -130,34 +132,17 @@ export type UserProfile = {
|
|
|
130
132
|
email_verified?: boolean;
|
|
131
133
|
phone_number_verified?: boolean;
|
|
132
134
|
signup_ticket?: string;
|
|
133
|
-
} & UserAttributes;
|
|
135
|
+
} & UserAttributes & UserProfilePublicSettings;
|
|
134
136
|
export type PublicUser = {
|
|
135
|
-
name?: string;
|
|
136
|
-
email?: string;
|
|
137
|
-
phone_number?: string;
|
|
138
|
-
address?: string | {
|
|
139
|
-
formatted: string;
|
|
140
|
-
locality: string;
|
|
141
|
-
region: string;
|
|
142
|
-
postal_code: string;
|
|
143
|
-
country: string;
|
|
144
|
-
};
|
|
145
|
-
gender?: string;
|
|
146
|
-
birthdate?: string;
|
|
147
|
-
misc?: string;
|
|
148
|
-
subscribers?: number;
|
|
149
|
-
records?: number;
|
|
150
|
-
timestamp: number;
|
|
151
137
|
service: string;
|
|
152
138
|
owner: string;
|
|
153
139
|
access_group: number;
|
|
154
140
|
user_id: string;
|
|
155
141
|
locale: string;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
};
|
|
142
|
+
subscribers?: number;
|
|
143
|
+
records?: number;
|
|
144
|
+
timestamp: number;
|
|
145
|
+
} & UserAttributes;
|
|
161
146
|
export type ProgressCallback = (e: {
|
|
162
147
|
status: 'upload' | 'download';
|
|
163
148
|
progress: number;
|
|
@@ -218,3 +203,4 @@ export type Service = {
|
|
|
218
203
|
};
|
|
219
204
|
users: number;
|
|
220
205
|
};
|
|
206
|
+
export {};
|
package/js/main/skapi.d.ts
CHANGED
|
@@ -199,7 +199,7 @@ export default class Skapi {
|
|
|
199
199
|
range: string | number;
|
|
200
200
|
condition?: '>' | '>=' | '=' | '<' | '<=' | 'gt' | 'gte' | 'eq' | 'lt' | 'lte';
|
|
201
201
|
group: 'public' | 'authorized' | number;
|
|
202
|
-
}, fetchOptions?: FetchOptions): Promise<Newsletters
|
|
202
|
+
}, fetchOptions?: FetchOptions): Promise<DatabaseResponse<Newsletters>>;
|
|
203
203
|
getNewsletterSubscription(params: {
|
|
204
204
|
group?: number | 'public' | 'authorized';
|
|
205
205
|
}): Promise<{
|
package/js/main/skapi.js
CHANGED
|
@@ -36,4 +36,4 @@ export declare function getNewsletters(params?: {
|
|
|
36
36
|
group: 'public' | 'authorized' | number;
|
|
37
37
|
range?: string | number;
|
|
38
38
|
condition?: '>' | '>=' | '=' | '<' | '<=' | 'gt' | 'gte' | 'eq' | 'lt' | 'lte';
|
|
39
|
-
}, fetchOptions?: FetchOptions): Promise<Newsletters
|
|
39
|
+
}, fetchOptions?: FetchOptions): Promise<DatabaseResponse<Newsletters>>;
|