@wenex/sdk 0.0.1 → 0.0.2

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.
@@ -29,5 +29,10 @@ export declare enum Action {
29
29
  UpdateClient = "update:client",
30
30
  DeleteClient = "delete:client",
31
31
  RestoreClient = "restore:client",
32
- DestroyClient = "destroy:client"
32
+ DestroyClient = "destroy:client",
33
+ Upload = "upload:assets",
34
+ Download = "download:assets",
35
+ InitTransactions = "init:transactions",
36
+ VerifyTransactions = "verify:transactions",
37
+ AbortTransactions = "abort:transactions"
33
38
  }
@@ -37,5 +37,12 @@ var Action;
37
37
  Action["DeleteClient"] = "delete:client";
38
38
  Action["RestoreClient"] = "restore:client";
39
39
  Action["DestroyClient"] = "destroy:client";
40
+ // Special -> Assets
41
+ Action["Upload"] = "upload:assets";
42
+ Action["Download"] = "download:assets";
43
+ // Financial -> Transactions
44
+ Action["InitTransactions"] = "init:transactions";
45
+ Action["VerifyTransactions"] = "verify:transactions";
46
+ Action["AbortTransactions"] = "abort:transactions";
40
47
  })(Action || (exports.Action = Action = {}));
41
48
  //# sourceMappingURL=action.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"action.enum.js","sourceRoot":"","sources":["../../../src/common/enums/base/action.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAwCX;AAxCD,WAAY,MAAM;IAChB,UAAU;IACV,qBAAW,CAAA;IAEX,UAAU;IACV,2BAAiB,CAAA;IACjB,uBAAa,CAAA;IACb,2BAAiB,CAAA;IACjB,2BAAiB,CAAA;IACjB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;IAEnB,SAAS;IACT,kCAAwB,CAAA;IACxB,8BAAoB,CAAA;IACpB,kCAAwB,CAAA;IACxB,kCAAwB,CAAA;IACxB,oCAA0B,CAAA;IAC1B,oCAA0B,CAAA;IAE1B,sCAA4B,CAAA;IAC5B,kCAAwB,CAAA;IACxB,sCAA4B,CAAA;IAC5B,sCAA4B,CAA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5B,gDAAsC,CAAA;IACtC,oDAA0C,CAAA;IAC1C,kDAAwC,CAAA;AAC1C,CAAC,EAjDW,MAAM,sBAAN,MAAM,QAiDjB"}
@@ -1,5 +1,6 @@
1
- export * from './state.enum';
1
+ export * from './role.enum';
2
2
  export * from './scope.enum';
3
+ export * from './state.enum';
3
4
  export * from './status.enum';
4
5
  export * from './action.enum';
5
6
  export * from './resource.enum';
@@ -14,8 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./state.enum"), exports);
17
+ __exportStar(require("./role.enum"), exports);
18
18
  __exportStar(require("./scope.enum"), exports);
19
+ __exportStar(require("./state.enum"), exports);
19
20
  __exportStar(require("./status.enum"), exports);
20
21
  __exportStar(require("./action.enum"), exports);
21
22
  __exportStar(require("./resource.enum"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/base/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/base/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B;AAC7B,+CAA6B;AAC7B,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,oDAAkC"}
@@ -12,6 +12,15 @@ export declare enum Resource {
12
12
  IdentityUsers = "identity:users",
13
13
  IdentityProfiles = "identity:profiles",
14
14
  IdentitySessions = "identity:sessions",
15
+ Archives = "archives",
15
16
  General = "general:all",
16
- GeneralArtifacts = "general:artifacts"
17
+ GeneralArtifacts = "general:artifacts",
18
+ GeneralLocations = "general:locations",
19
+ Special = "special:all",
20
+ SpecialAssets = "special:assets",
21
+ Financial = "financial:all",
22
+ FinancialAccounts = "financial:accounts",
23
+ FinancialWallets = "financial:wallets",
24
+ FinancialInvoices = "financial:invoices",
25
+ FinancialTransactions = "financial:transactions"
17
26
  }
@@ -19,7 +19,16 @@ var Resource;
19
19
  Resource["IdentityProfiles"] = "identity:profiles";
20
20
  Resource["IdentitySessions"] = "identity:sessions";
21
21
  // Premium
22
+ Resource["Archives"] = "archives";
22
23
  Resource["General"] = "general:all";
23
24
  Resource["GeneralArtifacts"] = "general:artifacts";
25
+ Resource["GeneralLocations"] = "general:locations";
26
+ Resource["Special"] = "special:all";
27
+ Resource["SpecialAssets"] = "special:assets";
28
+ Resource["Financial"] = "financial:all";
29
+ Resource["FinancialAccounts"] = "financial:accounts";
30
+ Resource["FinancialWallets"] = "financial:wallets";
31
+ Resource["FinancialInvoices"] = "financial:invoices";
32
+ Resource["FinancialTransactions"] = "financial:transactions";
24
33
  })(Resource || (exports.Resource = Resource = {}));
25
34
  //# sourceMappingURL=resource.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resource.enum.js","sourceRoot":"","sources":["../../../src/common/enums/base/resource.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAwBX;AAxBD,WAAY,QAAQ;IAClB,UAAU;IACV,uBAAW,CAAA;IAEX,UAAU;IACV,+BAAmB,CAAA;IAEnB,6BAAiB,CAAA;IACjB,sCAA0B,CAAA;IAC1B,oDAAwC,CAAA;IACxC,sDAA0C,CAAA;IAE1C,iCAAqB,CAAA;IACrB,sCAA0B,CAAA;IAC1B,4CAAgC,CAAA;IAEhC,qCAAyB,CAAA;IACzB,4CAAgC,CAAA;IAChC,kDAAsC,CAAA;IACtC,kDAAsC,CAAA;IAEtC,UAAU;IACV,mCAAuB,CAAA;IACvB,kDAAsC,CAAA;AACxC,CAAC,EAxBW,QAAQ,wBAAR,QAAQ,QAwBnB"}
1
+ {"version":3,"file":"resource.enum.js","sourceRoot":"","sources":["../../../src/common/enums/base/resource.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAoCX;AApCD,WAAY,QAAQ;IAClB,UAAU;IACV,uBAAW,CAAA;IAEX,UAAU;IACV,+BAAmB,CAAA;IAEnB,6BAAiB,CAAA;IACjB,sCAA0B,CAAA;IAC1B,oDAAwC,CAAA;IACxC,sDAA0C,CAAA;IAE1C,iCAAqB,CAAA;IACrB,sCAA0B,CAAA;IAC1B,4CAAgC,CAAA;IAEhC,qCAAyB,CAAA;IACzB,4CAAgC,CAAA;IAChC,kDAAsC,CAAA;IACtC,kDAAsC,CAAA;IAEtC,UAAU;IACV,iCAAqB,CAAA;IAErB,mCAAuB,CAAA;IACvB,kDAAsC,CAAA;IACtC,kDAAsC,CAAA;IAEtC,mCAAuB,CAAA;IACvB,4CAAgC,CAAA;IAEhC,uCAA2B,CAAA;IAC3B,oDAAwC,CAAA;IACxC,kDAAsC,CAAA;IACtC,oDAAwC,CAAA;IACxC,4DAAgD,CAAA;AAClD,CAAC,EApCW,QAAQ,wBAAR,QAAQ,QAoCnB"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Only for internal uses
3
+ */
4
+ export declare enum Role {
5
+ Guest = "guest",
6
+ System = "system"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Role = void 0;
4
+ /**
5
+ * Only for internal uses
6
+ */
7
+ var Role;
8
+ (function (Role) {
9
+ Role["Guest"] = "guest";
10
+ Role["System"] = "system";
11
+ })(Role || (exports.Role = Role = {}));
12
+ //# sourceMappingURL=role.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role.enum.js","sourceRoot":"","sources":["../../../src/common/enums/base/role.enum.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,uBAAe,CAAA;IACf,yBAAiB,CAAA;AACnB,CAAC,EAHW,IAAI,oBAAJ,IAAI,QAGf"}
@@ -3,9 +3,6 @@ export declare enum Scope {
3
3
  * Keyword
4
4
  */
5
5
  Whole = "whole",
6
- /**
7
- * Special
8
- */
9
6
  Read = "read",
10
7
  Write = "write",
11
8
  Manage = "manage",
@@ -43,10 +40,39 @@ export declare enum Scope {
43
40
  /**
44
41
  * Premium
45
42
  */
43
+ ReadArchives = "r:archives",
46
44
  ReadGeneral = "r:general",
47
45
  WriteGeneral = "w:general",
48
46
  ManageGeneral = "m:general",
49
47
  ReadGeneralArtifacts = "r:general:artifacts",
50
48
  WriteGeneralArtifacts = "w:general:artifacts",
51
- ManageGeneralArtifacts = "m:general:artifacts"
49
+ ManageGeneralArtifacts = "m:general:artifacts",
50
+ ReadGeneralLocations = "r:general:locations",
51
+ WriteGeneralLocations = "w:general:locations",
52
+ ManageGeneralLocations = "m:general:locations",
53
+ ReadSpecial = "r:special",
54
+ WriteSpecial = "w:special",
55
+ ManageSpecial = "m:special",
56
+ ReadSpecialAssets = "r:special:assets",
57
+ WriteSpecialAssets = "w:special:assets",
58
+ ManageSpecialAssets = "m:special:assets",
59
+ UploadPublicAssets = "u:special:assets:public",
60
+ UploadPrivateAssets = "u:special:assets:private",
61
+ DownloadPublicAssets = "d:special:assets:public",
62
+ DownloadPrivateAssets = "d:special:assets:private",
63
+ ReadFinancial = "r:financial",
64
+ WriteFinancial = "w:financial",
65
+ ManageFinancial = "m:financial",
66
+ ReadFinancialAccounts = "r:financial:accounts",
67
+ WriteFinancialAccounts = "w:financial:accounts",
68
+ ManageFinancialAccounts = "m:financial:accounts",
69
+ ReadFinancialWallets = "r:financial:wallets",
70
+ WriteFinancialWallets = "w:financial:wallets",
71
+ ManageFinancialWallets = "m:financial:wallets",
72
+ ReadFinancialInvoices = "r:financial:invoices",
73
+ WriteFinancialInvoices = "w:financial:invoices",
74
+ ManageFinancialInvoices = "m:financial:invoices",
75
+ ReadFinancialTransactions = "r:financial:transactions",
76
+ WriteFinancialTransactions = "w:financial:transactions",
77
+ ManageFinancialTransactions = "m:financial:transactions"
52
78
  }
@@ -7,9 +7,6 @@ var Scope;
7
7
  * Keyword
8
8
  */
9
9
  Scope["Whole"] = "whole";
10
- /**
11
- * Special
12
- */
13
10
  Scope["Read"] = "read";
14
11
  Scope["Write"] = "write";
15
12
  Scope["Manage"] = "manage";
@@ -51,6 +48,7 @@ var Scope;
51
48
  /**
52
49
  * Premium
53
50
  */
51
+ Scope["ReadArchives"] = "r:archives";
54
52
  // General
55
53
  Scope["ReadGeneral"] = "r:general";
56
54
  Scope["WriteGeneral"] = "w:general";
@@ -58,5 +56,35 @@ var Scope;
58
56
  Scope["ReadGeneralArtifacts"] = "r:general:artifacts";
59
57
  Scope["WriteGeneralArtifacts"] = "w:general:artifacts";
60
58
  Scope["ManageGeneralArtifacts"] = "m:general:artifacts";
59
+ Scope["ReadGeneralLocations"] = "r:general:locations";
60
+ Scope["WriteGeneralLocations"] = "w:general:locations";
61
+ Scope["ManageGeneralLocations"] = "m:general:locations";
62
+ // Special
63
+ Scope["ReadSpecial"] = "r:special";
64
+ Scope["WriteSpecial"] = "w:special";
65
+ Scope["ManageSpecial"] = "m:special";
66
+ Scope["ReadSpecialAssets"] = "r:special:assets";
67
+ Scope["WriteSpecialAssets"] = "w:special:assets";
68
+ Scope["ManageSpecialAssets"] = "m:special:assets";
69
+ Scope["UploadPublicAssets"] = "u:special:assets:public";
70
+ Scope["UploadPrivateAssets"] = "u:special:assets:private";
71
+ Scope["DownloadPublicAssets"] = "d:special:assets:public";
72
+ Scope["DownloadPrivateAssets"] = "d:special:assets:private";
73
+ // Financial
74
+ Scope["ReadFinancial"] = "r:financial";
75
+ Scope["WriteFinancial"] = "w:financial";
76
+ Scope["ManageFinancial"] = "m:financial";
77
+ Scope["ReadFinancialAccounts"] = "r:financial:accounts";
78
+ Scope["WriteFinancialAccounts"] = "w:financial:accounts";
79
+ Scope["ManageFinancialAccounts"] = "m:financial:accounts";
80
+ Scope["ReadFinancialWallets"] = "r:financial:wallets";
81
+ Scope["WriteFinancialWallets"] = "w:financial:wallets";
82
+ Scope["ManageFinancialWallets"] = "m:financial:wallets";
83
+ Scope["ReadFinancialInvoices"] = "r:financial:invoices";
84
+ Scope["WriteFinancialInvoices"] = "w:financial:invoices";
85
+ Scope["ManageFinancialInvoices"] = "m:financial:invoices";
86
+ Scope["ReadFinancialTransactions"] = "r:financial:transactions";
87
+ Scope["WriteFinancialTransactions"] = "w:financial:transactions";
88
+ Scope["ManageFinancialTransactions"] = "m:financial:transactions";
61
89
  })(Scope || (exports.Scope = Scope = {}));
62
90
  //# sourceMappingURL=scope.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scope.enum.js","sourceRoot":"","sources":["../../../src/common/enums/base/scope.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,KA4EX;AA5ED,WAAY,KAAK;IACf;;OAEG;IACH,wBAAe,CAAA;IAEf;;OAEG;IACH,sBAAa,CAAA;IACb,wBAAe,CAAA;IACf,0BAAiB,CAAA;IAEjB;;OAEG;IAEH,OAAO;IAEP,8BAAqB,CAAA;IAErB,yCAAgC,CAAA;IAChC,0CAAiC,CAAA;IACjC,2CAAkC,CAAA;IAElC,UAAU;IAEV,kCAAyB,CAAA;IACzB,mCAA0B,CAAA;IAC1B,oCAA2B,CAAA;IAE3B,WAAW;IAEX,oCAA2B,CAAA;IAC3B,qCAA4B,CAAA;IAC5B,sCAA6B,CAAA;IAE7B,+CAAsC,CAAA;IACtC,gDAAuC,CAAA;IACvC,iDAAwC,CAAA;IAExC,qDAA4C,CAAA;IAC5C,sDAA6C,CAAA;IAC7C,uDAA8C,CAAA;IAE9C,qDAA4C,CAAA;IAC5C,sDAA6C,CAAA;IAC7C,uDAA8C,CAAA;IAE9C,SAAS;IAET,gCAAuB,CAAA;IACvB,iCAAwB,CAAA;IACxB,kCAAyB,CAAA;IAEzB,yCAAgC,CAAA;IAChC,0CAAiC,CAAA;IACjC,2CAAkC,CAAA;IAElC,+CAAsC,CAAA;IACtC,gDAAuC,C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AAA;IAC7C,uDAA8C,CAAA;IAE9C,qDAA4C,CAAA;IAC5C,sDAA6C,CAAA;IAC7C,uDAA8C,CAAA;IAE9C,UAAU;IAEV,kCAAyB,CAAA;IACzB,mCAA0B,CAAA;IAC1B,oCAA2B,CAAA;IAE3B,+CAAsC,CAAA;IACtC,gDAAuC,CAAA;IACvC,iDAAwC,CAAA;IAExC,uDAA8C,CAAA;IAC9C,yDAAgD,CAAA;IAChD,yDAAgD,CAAA;IAChD,2DAAkD,CAAA;IAElD,YAAY;IAEZ,sCAA6B,CAAA;IAC7B,uCAA8B,CAAA;IAC9B,wCAA+B,CAAA;IAE/B,uDAA8C,CAAA;IAC9C,wDAA+C,CAAA;IAC/C,yDAAgD,CAAA;IAEhD,qDAA4C,CAAA;IAC5C,sDAA6C,CAAA;IAC7C,uDAA8C,CAAA;IAE9C,uDAA8C,CAAA;IAC9C,wDAA+C,CAAA;IAC/C,yDAAgD,CAAA;IAEhD,+DAAsD,CAAA;IACtD,gEAAuD,CAAA;IACvD,iEAAwD,CAAA;AAC1D,CAAC,EApHW,KAAK,qBAAL,KAAK,QAoHhB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Wenex Platform SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",