@wishknish/knishio-client-ts 0.8.3 → 0.9.1

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.
Files changed (35) hide show
  1. package/dist/index.cjs +399 -258
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +37 -16
  4. package/dist/index.d.ts +37 -16
  5. package/dist/index.iife.js +3700 -602
  6. package/dist/index.iife.js.map +1 -1
  7. package/dist/index.js +421 -280
  8. package/dist/index.js.map +1 -1
  9. package/package.json +18 -20
  10. package/src/KnishIOClient.ts +135 -53
  11. package/src/constants.ts +1 -2
  12. package/src/core/Molecule.ts +53 -0
  13. package/src/core/Wallet.ts +96 -3
  14. package/src/libraries/Decimal.ts +1 -1
  15. package/src/libraries/GraphQLClient.ts +83 -0
  16. package/src/libraries/Hex.ts +4 -3
  17. package/src/libraries/UrqlClientWrapper.ts +13 -13
  18. package/src/libraries/crypto.ts +4 -4
  19. package/src/mutation/MutationClaimShadowWallet.ts +3 -1
  20. package/src/mutation/MutationTransferTokens.ts +18 -0
  21. package/src/query/QueryActiveSession.ts +0 -1
  22. package/src/query/QueryPolicy.ts +0 -1
  23. package/src/response/ResponseAuthorizationGuest.ts +2 -2
  24. package/src/response/ResponseBalance.ts +9 -6
  25. package/src/response/ResponseLinkIdentifier.ts +1 -1
  26. package/src/response/ResponseRequestAuthorizationGuest.ts +2 -2
  27. package/src/subscribe/Subscribe.ts +3 -2
  28. package/src/types/assertions.ts +1 -6
  29. package/src/types/client.ts +12 -19
  30. package/src/types/guards.ts +2 -3
  31. package/src/validation/UNIVERSAL_CONFIGURATION_INTERFACES.ts +3 -5
  32. package/src/validation/ValidationService.ts +6 -15
  33. package/src/versions/HashAtom.ts +11 -9
  34. package/src/query/QueryUserActivity.ts +0 -153
  35. package/src/response/ResponseQueryUserActivity.ts +0 -89
@@ -1,89 +0,0 @@
1
- /*
2
- (
3
- (/(
4
- (//(
5
- (///(
6
- (/////(
7
- (//////( )
8
- (////////( (/)
9
- (////////( (///)
10
- (//////////( (////)
11
- (//////////( (//////)
12
- (////////////( (///////)
13
- (/////////////( (/////////)
14
- (//////////////( (///////////)
15
- (///////////////( (/////////////)
16
- (////////////////( (//////////////)
17
- ((((((((((((((((((( (((((((((((((((
18
- ((((((((((((((((((( ((((((((((((((
19
- ((((((((((((((((((( ((((((((((((((
20
- (((((((((((((((((((( (((((((((((((
21
- (((((((((((((((((((( ((((((((((((
22
- ((((((((((((((((((( ((((((((((((
23
- ((((((((((((((((((( ((((((((((
24
- ((((((((((((((((((/ (((((((((
25
- (((((((((((((((((( ((((((((
26
- ((((((((((((((((( (((((((
27
- (((((((((((((((((( (((((
28
- ################# ##
29
- ################ #
30
- ################# ##
31
- %################ ###
32
- ###############( ####
33
- ############### ####
34
- ############### ######
35
- %#############( (#######
36
- %############# #########
37
- ############( ##########
38
- ########### #############
39
- ######### ##############
40
- %######
41
-
42
- Powered by Knish.IO: Connecting a Decentralized World
43
-
44
- Please visit https://github.com/WishKnish/KnishIO-Client-TS for information.
45
-
46
- License: https://github.com/WishKnish/KnishIO-Client-TS/blob/master/LICENSE
47
- */
48
-
49
- import Response from './Response'
50
- import type Query from '@/query/Query'
51
-
52
- /**
53
- * Response for QueryUserActivity
54
- */
55
- export default class ResponseQueryUserActivity extends Response {
56
- /**
57
- * Constructor
58
- */
59
- constructor({
60
- query,
61
- json
62
- }: {
63
- query: Query
64
- json: Record<string, any>
65
- }) {
66
- super({
67
- query,
68
- json,
69
- dataKey: 'data.UserActivity'
70
- })
71
- }
72
-
73
- /**
74
- * Returns processed user activity data
75
- */
76
- override payload(): any {
77
- const data = JSON.parse(JSON.stringify(this.data()))
78
-
79
- if (data.instances) {
80
- for (const datum of data.instances) {
81
- if (datum.jsonData) {
82
- datum.jsonData = JSON.parse(datum.jsonData)
83
- }
84
- }
85
- }
86
-
87
- return data
88
- }
89
- }