@bytexbyte/ike-app-api 1.0.81 → 1.0.83
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/lib/App.d.ts +4 -4
- package/lib/App.js +3 -3
- package/lib/Auth/index.d.ts +2 -10
- package/lib/Auth/index.js +3 -23
- package/lib/Auth/type.d.ts +11 -11
- package/lib/Batch/index.d.ts +4 -4
- package/lib/Batch/index.js +3 -3
- package/lib/BleConnectionErrorLog/index.d.ts +2 -2
- package/lib/BleConnectionErrorLog/index.js +3 -3
- package/lib/Contract/index.js +3 -3
- package/lib/DigitalCustomization/index.d.ts +3 -3
- package/lib/DigitalCustomization/index.js +3 -3
- package/lib/File/UploadFileType.js +1 -1
- package/lib/File/index.d.ts +4 -4
- package/lib/File/index.js +8 -8
- package/lib/InAppNotification/index.js +3 -3
- package/lib/InAppNotification/type.d.ts +7 -7
- package/lib/Incode/index.d.ts +16 -3
- package/lib/Incode/index.js +62 -23
- package/lib/Incode/type.d.ts +2 -2
- package/lib/Mfa/index.d.ts +6 -6
- package/lib/Mfa/index.js +3 -3
- package/lib/Product/index.js +3 -3
- package/lib/Product/type.d.ts +6 -1
- package/lib/Redeem/index.d.ts +3 -3
- package/lib/Redeem/index.js +3 -3
- package/lib/RegisterDeviceCode/index.d.ts +2 -2
- package/lib/RegisterDeviceCode/index.js +3 -3
- package/lib/Rsa/index.js +3 -3
- package/lib/Scan/index.d.ts +4 -4
- package/lib/Scan/index.js +3 -3
- package/lib/Tags/index.d.ts +14 -14
- package/lib/Tags/index.js +3 -3
- package/lib/TouHistory/index.js +3 -3
- package/lib/User/index.d.ts +24 -18
- package/lib/User/index.js +53 -3
- package/lib/index.js +3 -3
- package/lib/types.d.ts +53 -53
- package/package.json +3 -3
package/lib/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Model Account
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type Account = {
|
|
6
6
|
id: string;
|
|
7
7
|
userId: string;
|
|
8
8
|
type: string;
|
|
@@ -20,7 +20,7 @@ export declare type Account = {
|
|
|
20
20
|
* Model Session
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export type Session = {
|
|
24
24
|
id: string;
|
|
25
25
|
sessionToken: string;
|
|
26
26
|
userId: string;
|
|
@@ -30,7 +30,7 @@ export declare type Session = {
|
|
|
30
30
|
* Model User
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
|
-
export
|
|
33
|
+
export type User = {
|
|
34
34
|
id: string;
|
|
35
35
|
webUserId: string | null;
|
|
36
36
|
email: string | null;
|
|
@@ -52,7 +52,7 @@ export declare type User = {
|
|
|
52
52
|
* Model VerificationToken
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
|
-
export
|
|
55
|
+
export type VerificationToken = {
|
|
56
56
|
identifier: string;
|
|
57
57
|
token: string;
|
|
58
58
|
expires: Date;
|
|
@@ -61,7 +61,7 @@ export declare type VerificationToken = {
|
|
|
61
61
|
* Model ForgotPassword
|
|
62
62
|
*
|
|
63
63
|
*/
|
|
64
|
-
export
|
|
64
|
+
export type ForgotPassword = {
|
|
65
65
|
id: string;
|
|
66
66
|
userId: string;
|
|
67
67
|
expires: Date;
|
|
@@ -70,7 +70,7 @@ export declare type ForgotPassword = {
|
|
|
70
70
|
* Model ProductImage
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
73
|
-
export
|
|
73
|
+
export type ProductImage = {
|
|
74
74
|
id: number;
|
|
75
75
|
productId: number;
|
|
76
76
|
src: string;
|
|
@@ -79,7 +79,7 @@ export declare type ProductImage = {
|
|
|
79
79
|
* Model Product
|
|
80
80
|
*
|
|
81
81
|
*/
|
|
82
|
-
export
|
|
82
|
+
export type Product = {
|
|
83
83
|
id: number;
|
|
84
84
|
name: string;
|
|
85
85
|
description: string | null;
|
|
@@ -89,7 +89,7 @@ export declare type Product = {
|
|
|
89
89
|
* Model Promo
|
|
90
90
|
*
|
|
91
91
|
*/
|
|
92
|
-
export
|
|
92
|
+
export type Promo = {
|
|
93
93
|
id: number;
|
|
94
94
|
productId: number;
|
|
95
95
|
title: string | null;
|
|
@@ -106,7 +106,7 @@ export declare type Promo = {
|
|
|
106
106
|
* Model Tag
|
|
107
107
|
*
|
|
108
108
|
*/
|
|
109
|
-
export
|
|
109
|
+
export type Tag = {
|
|
110
110
|
tokenId: string;
|
|
111
111
|
batchId: string;
|
|
112
112
|
cartItemId: number;
|
|
@@ -124,7 +124,7 @@ export declare type Tag = {
|
|
|
124
124
|
* Model TagReplaceOwner
|
|
125
125
|
*
|
|
126
126
|
*/
|
|
127
|
-
export
|
|
127
|
+
export type TagReplaceOwner = {
|
|
128
128
|
id: number;
|
|
129
129
|
tagTokenId: string;
|
|
130
130
|
originUserId: string | null;
|
|
@@ -136,7 +136,7 @@ export declare type TagReplaceOwner = {
|
|
|
136
136
|
* Model TagNft
|
|
137
137
|
*
|
|
138
138
|
*/
|
|
139
|
-
export
|
|
139
|
+
export type TagNft = {
|
|
140
140
|
id: number;
|
|
141
141
|
tagTokenId: string | null;
|
|
142
142
|
contractId: string;
|
|
@@ -151,7 +151,7 @@ export declare type TagNft = {
|
|
|
151
151
|
* Model Metadata
|
|
152
152
|
*
|
|
153
153
|
*/
|
|
154
|
-
export
|
|
154
|
+
export type Metadata = {
|
|
155
155
|
id: number;
|
|
156
156
|
digitalCustomizationId: number | null;
|
|
157
157
|
tagTokenId: string | null;
|
|
@@ -163,7 +163,7 @@ export declare type Metadata = {
|
|
|
163
163
|
* Model Batch
|
|
164
164
|
*
|
|
165
165
|
*/
|
|
166
|
-
export
|
|
166
|
+
export type Batch = {
|
|
167
167
|
id: string;
|
|
168
168
|
companyId: number;
|
|
169
169
|
name: string;
|
|
@@ -174,7 +174,7 @@ export declare type Batch = {
|
|
|
174
174
|
* Model Location
|
|
175
175
|
*
|
|
176
176
|
*/
|
|
177
|
-
export
|
|
177
|
+
export type Location = {
|
|
178
178
|
id: number;
|
|
179
179
|
name: string;
|
|
180
180
|
lat: number;
|
|
@@ -190,7 +190,7 @@ export declare type Location = {
|
|
|
190
190
|
* Model DigitalCustomization
|
|
191
191
|
*
|
|
192
192
|
*/
|
|
193
|
-
export
|
|
193
|
+
export type DigitalCustomization = {
|
|
194
194
|
id: number;
|
|
195
195
|
productId: number | null;
|
|
196
196
|
brandLogoSrc: string | null;
|
|
@@ -215,7 +215,7 @@ export declare type DigitalCustomization = {
|
|
|
215
215
|
* Model GoldenTicket
|
|
216
216
|
*
|
|
217
217
|
*/
|
|
218
|
-
export
|
|
218
|
+
export type GoldenTicket = {
|
|
219
219
|
id: number;
|
|
220
220
|
digitalCustomizationId: number;
|
|
221
221
|
amount: number;
|
|
@@ -231,7 +231,7 @@ export declare type GoldenTicket = {
|
|
|
231
231
|
* Model Redeem
|
|
232
232
|
*
|
|
233
233
|
*/
|
|
234
|
-
export
|
|
234
|
+
export type Redeem = {
|
|
235
235
|
id: number;
|
|
236
236
|
userId: string;
|
|
237
237
|
goldenTicketId: number | null;
|
|
@@ -243,7 +243,7 @@ export declare type Redeem = {
|
|
|
243
243
|
* Model Scan
|
|
244
244
|
*
|
|
245
245
|
*/
|
|
246
|
-
export
|
|
246
|
+
export type Scan = {
|
|
247
247
|
id: number;
|
|
248
248
|
tagTokenId: string;
|
|
249
249
|
userId: string | null;
|
|
@@ -270,7 +270,7 @@ export declare type Scan = {
|
|
|
270
270
|
* Model Nft
|
|
271
271
|
*
|
|
272
272
|
*/
|
|
273
|
-
export
|
|
273
|
+
export type Nft = {
|
|
274
274
|
id: number;
|
|
275
275
|
batchId: string;
|
|
276
276
|
contractId: string;
|
|
@@ -283,7 +283,7 @@ export declare type Nft = {
|
|
|
283
283
|
* Model NftTransferLog
|
|
284
284
|
*
|
|
285
285
|
*/
|
|
286
|
-
export
|
|
286
|
+
export type NftTransferLog = {
|
|
287
287
|
id: number;
|
|
288
288
|
userId: string;
|
|
289
289
|
tagNftId: number | null;
|
|
@@ -296,7 +296,7 @@ export declare type NftTransferLog = {
|
|
|
296
296
|
* Model SavedProduct
|
|
297
297
|
*
|
|
298
298
|
*/
|
|
299
|
-
export
|
|
299
|
+
export type SavedProduct = {
|
|
300
300
|
id: number;
|
|
301
301
|
userId: string;
|
|
302
302
|
digitalCustomizationId: number;
|
|
@@ -305,7 +305,7 @@ export declare type SavedProduct = {
|
|
|
305
305
|
* Model Notification
|
|
306
306
|
*
|
|
307
307
|
*/
|
|
308
|
-
export
|
|
308
|
+
export type Notification = {
|
|
309
309
|
id: number;
|
|
310
310
|
userId: string;
|
|
311
311
|
digitalCustomizationId: number;
|
|
@@ -315,7 +315,7 @@ export declare type Notification = {
|
|
|
315
315
|
* Model MFA
|
|
316
316
|
*
|
|
317
317
|
*/
|
|
318
|
-
export
|
|
318
|
+
export type MFA = {
|
|
319
319
|
id: number;
|
|
320
320
|
userId: string;
|
|
321
321
|
code: number;
|
|
@@ -327,7 +327,7 @@ export declare type MFA = {
|
|
|
327
327
|
* Model Wallet
|
|
328
328
|
*
|
|
329
329
|
*/
|
|
330
|
-
export
|
|
330
|
+
export type Wallet = {
|
|
331
331
|
id: number;
|
|
332
332
|
userId: string;
|
|
333
333
|
address: string;
|
|
@@ -336,7 +336,7 @@ export declare type Wallet = {
|
|
|
336
336
|
* Model PushToken
|
|
337
337
|
*
|
|
338
338
|
*/
|
|
339
|
-
export
|
|
339
|
+
export type PushToken = {
|
|
340
340
|
id: number;
|
|
341
341
|
token: string;
|
|
342
342
|
device: string;
|
|
@@ -348,7 +348,7 @@ export declare type PushToken = {
|
|
|
348
348
|
* Model Company
|
|
349
349
|
*
|
|
350
350
|
*/
|
|
351
|
-
export
|
|
351
|
+
export type Company = {
|
|
352
352
|
id: number;
|
|
353
353
|
name: string;
|
|
354
354
|
logo: string | null;
|
|
@@ -358,7 +358,7 @@ export declare type Company = {
|
|
|
358
358
|
* Model ApiKeys
|
|
359
359
|
*
|
|
360
360
|
*/
|
|
361
|
-
export
|
|
361
|
+
export type ApiKeys = {
|
|
362
362
|
id: string;
|
|
363
363
|
secretKey: string;
|
|
364
364
|
companyName: string;
|
|
@@ -368,7 +368,7 @@ export declare type ApiKeys = {
|
|
|
368
368
|
* Model PointRule
|
|
369
369
|
*
|
|
370
370
|
*/
|
|
371
|
-
export
|
|
371
|
+
export type PointRule = {
|
|
372
372
|
id: string;
|
|
373
373
|
companyId: number;
|
|
374
374
|
name: string;
|
|
@@ -385,7 +385,7 @@ export declare type PointRule = {
|
|
|
385
385
|
* Model PointRuleAssign
|
|
386
386
|
*
|
|
387
387
|
*/
|
|
388
|
-
export
|
|
388
|
+
export type PointRuleAssign = {
|
|
389
389
|
id: string;
|
|
390
390
|
digitalCustomizationId: number;
|
|
391
391
|
pointRuleId: string;
|
|
@@ -396,7 +396,7 @@ export declare type PointRuleAssign = {
|
|
|
396
396
|
* Model Point
|
|
397
397
|
*
|
|
398
398
|
*/
|
|
399
|
-
export
|
|
399
|
+
export type Point = {
|
|
400
400
|
id: string;
|
|
401
401
|
userId: string;
|
|
402
402
|
pointRuleAssignId: string;
|
|
@@ -406,7 +406,7 @@ export declare type Point = {
|
|
|
406
406
|
* Model RewardRule
|
|
407
407
|
*
|
|
408
408
|
*/
|
|
409
|
-
export
|
|
409
|
+
export type RewardRule = {
|
|
410
410
|
id: string;
|
|
411
411
|
payPoint: number;
|
|
412
412
|
companyId: number;
|
|
@@ -426,7 +426,7 @@ export declare type RewardRule = {
|
|
|
426
426
|
* Model RewardCode
|
|
427
427
|
*
|
|
428
428
|
*/
|
|
429
|
-
export
|
|
429
|
+
export type RewardCode = {
|
|
430
430
|
id: string;
|
|
431
431
|
rewardRuleId: string;
|
|
432
432
|
rewardId: string | null;
|
|
@@ -438,7 +438,7 @@ export declare type RewardCode = {
|
|
|
438
438
|
* Model Reward
|
|
439
439
|
*
|
|
440
440
|
*/
|
|
441
|
-
export
|
|
441
|
+
export type Reward = {
|
|
442
442
|
id: string;
|
|
443
443
|
userId: string;
|
|
444
444
|
rewardRuleId: string;
|
|
@@ -449,7 +449,7 @@ export declare type Reward = {
|
|
|
449
449
|
* Model Contract
|
|
450
450
|
*
|
|
451
451
|
*/
|
|
452
|
-
export
|
|
452
|
+
export type Contract = {
|
|
453
453
|
id: string;
|
|
454
454
|
nickName: string;
|
|
455
455
|
companyId: number;
|
|
@@ -471,7 +471,7 @@ export declare type Contract = {
|
|
|
471
471
|
* Model PointLog
|
|
472
472
|
*
|
|
473
473
|
*/
|
|
474
|
-
export
|
|
474
|
+
export type PointLog = {
|
|
475
475
|
id: number;
|
|
476
476
|
pointId: string;
|
|
477
477
|
pointRuleAssignId: string;
|
|
@@ -481,7 +481,7 @@ export declare type PointLog = {
|
|
|
481
481
|
* Model PendingPointLog
|
|
482
482
|
*
|
|
483
483
|
*/
|
|
484
|
-
export
|
|
484
|
+
export type PendingPointLog = {
|
|
485
485
|
id: number;
|
|
486
486
|
pointLogId: number;
|
|
487
487
|
logId: number;
|
|
@@ -490,7 +490,7 @@ export declare type PendingPointLog = {
|
|
|
490
490
|
* Model RewardLog
|
|
491
491
|
*
|
|
492
492
|
*/
|
|
493
|
-
export
|
|
493
|
+
export type RewardLog = {
|
|
494
494
|
id: number;
|
|
495
495
|
rewardId: string;
|
|
496
496
|
logId: number;
|
|
@@ -499,7 +499,7 @@ export declare type RewardLog = {
|
|
|
499
499
|
* Model Log
|
|
500
500
|
*
|
|
501
501
|
*/
|
|
502
|
-
export
|
|
502
|
+
export type Log = {
|
|
503
503
|
id: number;
|
|
504
504
|
createdAt: Date;
|
|
505
505
|
logType: LogType;
|
|
@@ -508,7 +508,7 @@ export declare type Log = {
|
|
|
508
508
|
* Model WebUser
|
|
509
509
|
*
|
|
510
510
|
*/
|
|
511
|
-
export
|
|
511
|
+
export type WebUser = {
|
|
512
512
|
id: string;
|
|
513
513
|
imageSrc: string | null;
|
|
514
514
|
email: string;
|
|
@@ -519,7 +519,7 @@ export declare type WebUser = {
|
|
|
519
519
|
* Model BleConnectionErrorLog
|
|
520
520
|
*
|
|
521
521
|
*/
|
|
522
|
-
export
|
|
522
|
+
export type BleConnectionErrorLog = {
|
|
523
523
|
id: string;
|
|
524
524
|
userId: string;
|
|
525
525
|
title: string;
|
|
@@ -537,66 +537,66 @@ export declare const BlockChainStatusType: {
|
|
|
537
537
|
transferred: string;
|
|
538
538
|
fail: string;
|
|
539
539
|
};
|
|
540
|
-
export
|
|
540
|
+
export type BlockChainStatusType = typeof BlockChainStatusType[keyof typeof BlockChainStatusType];
|
|
541
541
|
export declare const AgeVerificationType: {
|
|
542
542
|
none: string;
|
|
543
543
|
eighteen: string;
|
|
544
544
|
twentyOne: string;
|
|
545
545
|
};
|
|
546
|
-
export
|
|
546
|
+
export type AgeVerificationType = typeof AgeVerificationType[keyof typeof AgeVerificationType];
|
|
547
547
|
export declare const NftStatusType: {
|
|
548
548
|
none: string;
|
|
549
549
|
denied: string;
|
|
550
550
|
approved: string;
|
|
551
551
|
pending: string;
|
|
552
552
|
};
|
|
553
|
-
export
|
|
553
|
+
export type NftStatusType = typeof NftStatusType[keyof typeof NftStatusType];
|
|
554
554
|
export declare const FromType: {
|
|
555
555
|
email: string;
|
|
556
556
|
phone: string;
|
|
557
557
|
};
|
|
558
|
-
export
|
|
558
|
+
export type FromType = typeof FromType[keyof typeof FromType];
|
|
559
559
|
export declare const osType: {
|
|
560
560
|
ios: string;
|
|
561
561
|
android: string;
|
|
562
562
|
};
|
|
563
|
-
export
|
|
563
|
+
export type osType = typeof osType[keyof typeof osType];
|
|
564
564
|
export declare const RuleType: {
|
|
565
565
|
scan: string;
|
|
566
566
|
referral: string;
|
|
567
567
|
redeemNFT: string;
|
|
568
568
|
redeemGoldenTicket: string;
|
|
569
569
|
};
|
|
570
|
-
export
|
|
570
|
+
export type RuleType = typeof RuleType[keyof typeof RuleType];
|
|
571
571
|
export declare const RewardType: {
|
|
572
572
|
fixedAmount: string;
|
|
573
573
|
percentage: string;
|
|
574
574
|
};
|
|
575
|
-
export
|
|
575
|
+
export type RewardType = typeof RewardType[keyof typeof RewardType];
|
|
576
576
|
export declare const MinimumPurchaseRequirementsType: {
|
|
577
577
|
quantity: string;
|
|
578
578
|
amount: string;
|
|
579
579
|
};
|
|
580
|
-
export
|
|
580
|
+
export type MinimumPurchaseRequirementsType = typeof MinimumPurchaseRequirementsType[keyof typeof MinimumPurchaseRequirementsType];
|
|
581
581
|
export declare const ContractType: {
|
|
582
582
|
Erc721: string;
|
|
583
583
|
Erc1155: string;
|
|
584
584
|
};
|
|
585
|
-
export
|
|
585
|
+
export type ContractType = typeof ContractType[keyof typeof ContractType];
|
|
586
586
|
export declare const ContractStatusType: {
|
|
587
587
|
none: string;
|
|
588
588
|
denied: string;
|
|
589
589
|
approved: string;
|
|
590
590
|
pending: string;
|
|
591
591
|
};
|
|
592
|
-
export
|
|
592
|
+
export type ContractStatusType = typeof ContractStatusType[keyof typeof ContractStatusType];
|
|
593
593
|
export declare const LogType: {
|
|
594
594
|
pointLog: string;
|
|
595
595
|
rewardLog: string;
|
|
596
596
|
pendingPointLog: string;
|
|
597
597
|
};
|
|
598
|
-
export
|
|
599
|
-
export
|
|
598
|
+
export type LogType = typeof LogType[keyof typeof LogType];
|
|
599
|
+
export type UserLog = {
|
|
600
600
|
id: number;
|
|
601
601
|
userId: string;
|
|
602
602
|
tagTokenId: string;
|
|
@@ -611,4 +611,4 @@ export declare const UserLogAction: {
|
|
|
611
611
|
connection: string;
|
|
612
612
|
unknow: string;
|
|
613
613
|
};
|
|
614
|
-
export
|
|
614
|
+
export type UserLogAction = typeof UserLogAction[keyof typeof UserLogAction];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytexbyte/ike-app-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.83",
|
|
4
4
|
"description": "app api",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"homepage": "https://dev.azure.com/ByteXByte/IKE/_git/IKE-web?path=/next/app-api",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^
|
|
26
|
+
"@types/node": "^22.0.0",
|
|
27
27
|
"prettier": "^2.7.1",
|
|
28
28
|
"tslint": "^6.1.3",
|
|
29
29
|
"tslint-config-prettier": "^1.18.0",
|
|
30
|
-
"typescript": "
|
|
30
|
+
"typescript": "~5.7.3"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"lib/**/*"
|