@merchi/sdk 1.42.6 → 1.42.8
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/entities/user.js +8 -0
- package/dist/entity.js +3 -0
- package/package.json +1 -1
- package/src/entities/user.ts +6 -0
- package/src/entity.ts +5 -0
package/dist/entities/user.js
CHANGED
|
@@ -284,6 +284,14 @@ var User = /** @class */ (function (_super) {
|
|
|
284
284
|
User.property({ type: String }),
|
|
285
285
|
__metadata("design:type", String)
|
|
286
286
|
], User.prototype, "telegramUsername", void 0);
|
|
287
|
+
__decorate([
|
|
288
|
+
User.property({ type: String }),
|
|
289
|
+
__metadata("design:type", String)
|
|
290
|
+
], User.prototype, "wechatId", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
User.property({ type: Boolean }),
|
|
293
|
+
__metadata("design:type", Boolean)
|
|
294
|
+
], User.prototype, "whatsappContactEnabled", void 0);
|
|
287
295
|
__decorate([
|
|
288
296
|
User.property({ type: String }),
|
|
289
297
|
__metadata("design:type", String)
|
package/dist/entity.js
CHANGED
|
@@ -691,6 +691,9 @@ var Entity = /** @class */ (function () {
|
|
|
691
691
|
if (options.isTest !== undefined) {
|
|
692
692
|
fetchOptions.query.push(['is_test', options.isTest.toString()]);
|
|
693
693
|
}
|
|
694
|
+
if (options.invoicePaid !== undefined) {
|
|
695
|
+
fetchOptions.query.push(['invoice_paid', options.invoicePaid.toString()]);
|
|
696
|
+
}
|
|
694
697
|
if (options.sourceChannel !== undefined) {
|
|
695
698
|
fetchOptions.query.push(['source_channel', options.sourceChannel.toString()]);
|
|
696
699
|
}
|
package/package.json
CHANGED
package/src/entities/user.ts
CHANGED
|
@@ -138,6 +138,12 @@ export class User extends Entity {
|
|
|
138
138
|
@User.property({type: String})
|
|
139
139
|
public telegramUsername?: string;
|
|
140
140
|
|
|
141
|
+
@User.property({type: String})
|
|
142
|
+
public wechatId?: string;
|
|
143
|
+
|
|
144
|
+
@User.property({type: Boolean})
|
|
145
|
+
public whatsappContactEnabled?: boolean;
|
|
146
|
+
|
|
141
147
|
@User.property({type: String})
|
|
142
148
|
public internalUseAiContext?: string;
|
|
143
149
|
|
package/src/entity.ts
CHANGED
|
@@ -131,6 +131,8 @@ interface ListOptions {
|
|
|
131
131
|
publicOnly?: boolean;
|
|
132
132
|
isDraft?: boolean;
|
|
133
133
|
isTest?: boolean;
|
|
134
|
+
/** true = invoice fully paid, false = invoice issued but not fully paid */
|
|
135
|
+
invoicePaid?: boolean;
|
|
134
136
|
sourceChannel?: string;
|
|
135
137
|
q?: string;
|
|
136
138
|
receiverId?: number;
|
|
@@ -503,6 +505,9 @@ export class Entity {
|
|
|
503
505
|
if (options.isTest !== undefined) {
|
|
504
506
|
fetchOptions.query.push(['is_test', options.isTest.toString()]);
|
|
505
507
|
}
|
|
508
|
+
if (options.invoicePaid !== undefined) {
|
|
509
|
+
fetchOptions.query.push(['invoice_paid', options.invoicePaid.toString()]);
|
|
510
|
+
}
|
|
506
511
|
if (options.sourceChannel !== undefined) {
|
|
507
512
|
fetchOptions.query.push(['source_channel', options.sourceChannel.toString()]);
|
|
508
513
|
}
|