@vritti/api-sdk 0.2.10 → 0.3.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 (55) hide show
  1. package/dist/cache.cjs +252 -0
  2. package/dist/cache.cjs.map +1 -0
  3. package/dist/cache.d.cts +25 -0
  4. package/dist/cache.d.ts +25 -0
  5. package/dist/cache.js +214 -0
  6. package/dist/cache.js.map +1 -0
  7. package/dist/cache.service-_SuJIcNA.d.cts +20 -0
  8. package/dist/cache.service-_SuJIcNA.d.ts +20 -0
  9. package/dist/catalog-resolver.cjs +364 -0
  10. package/dist/catalog-resolver.cjs.map +1 -0
  11. package/dist/catalog-resolver.d.cts +109 -0
  12. package/dist/catalog-resolver.d.ts +109 -0
  13. package/dist/catalog-resolver.js +330 -0
  14. package/dist/catalog-resolver.js.map +1 -0
  15. package/dist/email.cjs +691 -0
  16. package/dist/email.cjs.map +1 -0
  17. package/dist/email.d.cts +35 -0
  18. package/dist/email.d.ts +35 -0
  19. package/dist/email.js +665 -0
  20. package/dist/email.js.map +1 -0
  21. package/dist/fastify-augmentation-CQPBNS5a.d.cts +105 -0
  22. package/dist/fastify-augmentation-CQPBNS5a.d.ts +105 -0
  23. package/dist/icons.cjs +13803 -0
  24. package/dist/icons.cjs.map +1 -0
  25. package/dist/icons.d.cts +8 -0
  26. package/dist/icons.d.ts +8 -0
  27. package/dist/icons.js +13778 -0
  28. package/dist/icons.js.map +1 -0
  29. package/dist/index.cjs +742 -1367
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +103 -181
  32. package/dist/index.d.ts +103 -181
  33. package/dist/index.js +601 -1233
  34. package/dist/index.js.map +1 -1
  35. package/dist/license.cjs +104 -0
  36. package/dist/license.cjs.map +1 -0
  37. package/dist/license.d.cts +32 -0
  38. package/dist/license.d.ts +32 -0
  39. package/dist/license.js +75 -0
  40. package/dist/license.js.map +1 -0
  41. package/dist/money.cjs +93 -6
  42. package/dist/money.cjs.map +1 -1
  43. package/dist/money.d.cts +13 -1
  44. package/dist/money.d.ts +13 -1
  45. package/dist/money.js +115 -3
  46. package/dist/money.js.map +1 -1
  47. package/dist/nats.cjs +196 -179
  48. package/dist/nats.cjs.map +1 -1
  49. package/dist/nats.d.cts +13 -11
  50. package/dist/nats.d.ts +13 -11
  51. package/dist/nats.js +172 -155
  52. package/dist/nats.js.map +1 -1
  53. package/dist/types-DQRwj5rr.d.cts +113 -0
  54. package/dist/types-DQRwj5rr.d.ts +113 -0
  55. package/package.json +55 -1
@@ -0,0 +1,113 @@
1
+ type PlatformBucket = 'web' | 'mobile';
2
+ declare const PLATFORMS: PlatformBucket[];
3
+ interface PlatformCodes {
4
+ web?: string[];
5
+ mobile?: string[];
6
+ }
7
+ interface PlatformDenyCodes {
8
+ web?: string[] | null;
9
+ mobile?: string[] | null;
10
+ }
11
+ type FeatureUnlocks = Record<string, PlatformCodes>;
12
+ type BuFeatureLocks = Record<string, PlatformDenyCodes>;
13
+ interface SnapshotPermission {
14
+ code: string;
15
+ label: string;
16
+ isGlobal: boolean;
17
+ businesses: string[];
18
+ }
19
+ interface SnapshotMicrofrontendWeb {
20
+ code: string;
21
+ name: string;
22
+ remoteEntry: string;
23
+ exposedModule: string;
24
+ routePrefix: string;
25
+ }
26
+ interface SnapshotMicrofrontendMobile {
27
+ code: string;
28
+ name: string;
29
+ remoteEntryAndroid: string;
30
+ remoteEntryIos: string;
31
+ exposedModule: string;
32
+ routePrefix: string;
33
+ }
34
+ interface SnapshotMicrofrontends {
35
+ web?: SnapshotMicrofrontendWeb;
36
+ mobile?: SnapshotMicrofrontendMobile;
37
+ }
38
+ interface SnapshotFeature {
39
+ code: string;
40
+ name: string;
41
+ lucideIcon: string;
42
+ sfSymbol: string;
43
+ materialSymbol: string;
44
+ permissions: SnapshotPermission[];
45
+ microfrontends: SnapshotMicrofrontends;
46
+ }
47
+ interface SnapshotApp {
48
+ code: string;
49
+ name: string;
50
+ icon: string;
51
+ sortOrder: number;
52
+ features: string[];
53
+ }
54
+ interface SnapshotRoleTemplate {
55
+ name: string;
56
+ code: string;
57
+ features: FeatureUnlocks;
58
+ }
59
+ interface SnapshotPlan {
60
+ code: string;
61
+ name: string;
62
+ isCustom: boolean;
63
+ maxBusinessUnits: number | null;
64
+ unlockedPermissions: FeatureUnlocks;
65
+ }
66
+ interface SnapshotBusiness {
67
+ name: string;
68
+ apps: SnapshotApp[];
69
+ roleTemplates: Record<string, SnapshotRoleTemplate>;
70
+ plans: Record<string, SnapshotPlan>;
71
+ }
72
+ interface VersionSnapshot {
73
+ schemaVersion?: number;
74
+ features: Record<string, SnapshotFeature>;
75
+ businesses: Record<string, SnapshotBusiness>;
76
+ }
77
+ declare const SNAPSHOT_SCHEMA_VERSION = 1;
78
+ type LockReason = 'PLAN' | 'BU';
79
+ interface CatalogPermission {
80
+ code: string;
81
+ locked: boolean;
82
+ lockReason: LockReason | null;
83
+ unlockPlans: string[];
84
+ }
85
+ interface FeatureCatalogEntry {
86
+ code: string;
87
+ name: string;
88
+ lucideIcon: string | null;
89
+ sfSymbol: string;
90
+ materialSymbol: string;
91
+ web: {
92
+ remoteEntry: string;
93
+ exposedModule: string;
94
+ routePrefix: string;
95
+ } | null;
96
+ mobile: {
97
+ remoteEntryAndroid: string;
98
+ remoteEntryIos: string;
99
+ exposedModule: string;
100
+ routePrefix: string;
101
+ } | null;
102
+ appCode: string;
103
+ appName: string;
104
+ appIcon: string | null;
105
+ appSortOrder: number;
106
+ locked: boolean;
107
+ lockReason: LockReason | null;
108
+ unlockPlans: string[];
109
+ permissions: CatalogPermission[];
110
+ }
111
+ type RoleItem = SnapshotRoleTemplate;
112
+
113
+ export { type BuFeatureLocks as B, type CatalogPermission as C, type FeatureCatalogEntry as F, type LockReason as L, type PlatformBucket as P, type RoleItem as R, SNAPSHOT_SCHEMA_VERSION as S, type VersionSnapshot as V, type PlatformCodes as a, type FeatureUnlocks as b, type PlatformDenyCodes as c, PLATFORMS as d, type SnapshotApp as e, type SnapshotBusiness as f, type SnapshotFeature as g, type SnapshotMicrofrontendMobile as h, type SnapshotMicrofrontends as i, type SnapshotMicrofrontendWeb as j, type SnapshotPermission as k, type SnapshotPlan as l, type SnapshotRoleTemplate as m };
@@ -0,0 +1,113 @@
1
+ type PlatformBucket = 'web' | 'mobile';
2
+ declare const PLATFORMS: PlatformBucket[];
3
+ interface PlatformCodes {
4
+ web?: string[];
5
+ mobile?: string[];
6
+ }
7
+ interface PlatformDenyCodes {
8
+ web?: string[] | null;
9
+ mobile?: string[] | null;
10
+ }
11
+ type FeatureUnlocks = Record<string, PlatformCodes>;
12
+ type BuFeatureLocks = Record<string, PlatformDenyCodes>;
13
+ interface SnapshotPermission {
14
+ code: string;
15
+ label: string;
16
+ isGlobal: boolean;
17
+ businesses: string[];
18
+ }
19
+ interface SnapshotMicrofrontendWeb {
20
+ code: string;
21
+ name: string;
22
+ remoteEntry: string;
23
+ exposedModule: string;
24
+ routePrefix: string;
25
+ }
26
+ interface SnapshotMicrofrontendMobile {
27
+ code: string;
28
+ name: string;
29
+ remoteEntryAndroid: string;
30
+ remoteEntryIos: string;
31
+ exposedModule: string;
32
+ routePrefix: string;
33
+ }
34
+ interface SnapshotMicrofrontends {
35
+ web?: SnapshotMicrofrontendWeb;
36
+ mobile?: SnapshotMicrofrontendMobile;
37
+ }
38
+ interface SnapshotFeature {
39
+ code: string;
40
+ name: string;
41
+ lucideIcon: string;
42
+ sfSymbol: string;
43
+ materialSymbol: string;
44
+ permissions: SnapshotPermission[];
45
+ microfrontends: SnapshotMicrofrontends;
46
+ }
47
+ interface SnapshotApp {
48
+ code: string;
49
+ name: string;
50
+ icon: string;
51
+ sortOrder: number;
52
+ features: string[];
53
+ }
54
+ interface SnapshotRoleTemplate {
55
+ name: string;
56
+ code: string;
57
+ features: FeatureUnlocks;
58
+ }
59
+ interface SnapshotPlan {
60
+ code: string;
61
+ name: string;
62
+ isCustom: boolean;
63
+ maxBusinessUnits: number | null;
64
+ unlockedPermissions: FeatureUnlocks;
65
+ }
66
+ interface SnapshotBusiness {
67
+ name: string;
68
+ apps: SnapshotApp[];
69
+ roleTemplates: Record<string, SnapshotRoleTemplate>;
70
+ plans: Record<string, SnapshotPlan>;
71
+ }
72
+ interface VersionSnapshot {
73
+ schemaVersion?: number;
74
+ features: Record<string, SnapshotFeature>;
75
+ businesses: Record<string, SnapshotBusiness>;
76
+ }
77
+ declare const SNAPSHOT_SCHEMA_VERSION = 1;
78
+ type LockReason = 'PLAN' | 'BU';
79
+ interface CatalogPermission {
80
+ code: string;
81
+ locked: boolean;
82
+ lockReason: LockReason | null;
83
+ unlockPlans: string[];
84
+ }
85
+ interface FeatureCatalogEntry {
86
+ code: string;
87
+ name: string;
88
+ lucideIcon: string | null;
89
+ sfSymbol: string;
90
+ materialSymbol: string;
91
+ web: {
92
+ remoteEntry: string;
93
+ exposedModule: string;
94
+ routePrefix: string;
95
+ } | null;
96
+ mobile: {
97
+ remoteEntryAndroid: string;
98
+ remoteEntryIos: string;
99
+ exposedModule: string;
100
+ routePrefix: string;
101
+ } | null;
102
+ appCode: string;
103
+ appName: string;
104
+ appIcon: string | null;
105
+ appSortOrder: number;
106
+ locked: boolean;
107
+ lockReason: LockReason | null;
108
+ unlockPlans: string[];
109
+ permissions: CatalogPermission[];
110
+ }
111
+ type RoleItem = SnapshotRoleTemplate;
112
+
113
+ export { type BuFeatureLocks as B, type CatalogPermission as C, type FeatureCatalogEntry as F, type LockReason as L, type PlatformBucket as P, type RoleItem as R, SNAPSHOT_SCHEMA_VERSION as S, type VersionSnapshot as V, type PlatformCodes as a, type FeatureUnlocks as b, type PlatformDenyCodes as c, PLATFORMS as d, type SnapshotApp as e, type SnapshotBusiness as f, type SnapshotFeature as g, type SnapshotMicrofrontendMobile as h, type SnapshotMicrofrontends as i, type SnapshotMicrofrontendWeb as j, type SnapshotPermission as k, type SnapshotPlan as l, type SnapshotRoleTemplate as m };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vritti/api-sdk",
3
3
  "type": "module",
4
- "version": "0.2.10",
4
+ "version": "0.3.1",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -95,6 +95,56 @@
95
95
  "types": "./dist/money.d.cts",
96
96
  "default": "./dist/money.cjs"
97
97
  }
98
+ },
99
+ "./icons": {
100
+ "import": {
101
+ "types": "./dist/icons.d.ts",
102
+ "default": "./dist/icons.js"
103
+ },
104
+ "require": {
105
+ "types": "./dist/icons.d.cts",
106
+ "default": "./dist/icons.cjs"
107
+ }
108
+ },
109
+ "./catalog-resolver": {
110
+ "import": {
111
+ "types": "./dist/catalog-resolver.d.ts",
112
+ "default": "./dist/catalog-resolver.js"
113
+ },
114
+ "require": {
115
+ "types": "./dist/catalog-resolver.d.cts",
116
+ "default": "./dist/catalog-resolver.cjs"
117
+ }
118
+ },
119
+ "./license": {
120
+ "import": {
121
+ "types": "./dist/license.d.ts",
122
+ "default": "./dist/license.js"
123
+ },
124
+ "require": {
125
+ "types": "./dist/license.d.cts",
126
+ "default": "./dist/license.cjs"
127
+ }
128
+ },
129
+ "./cache": {
130
+ "import": {
131
+ "types": "./dist/cache.d.ts",
132
+ "default": "./dist/cache.js"
133
+ },
134
+ "require": {
135
+ "types": "./dist/cache.d.cts",
136
+ "default": "./dist/cache.cjs"
137
+ }
138
+ },
139
+ "./email": {
140
+ "import": {
141
+ "types": "./dist/email.d.ts",
142
+ "default": "./dist/email.js"
143
+ },
144
+ "require": {
145
+ "types": "./dist/email.d.cts",
146
+ "default": "./dist/email.cjs"
147
+ }
98
148
  }
99
149
  },
100
150
  "files": [
@@ -127,6 +177,7 @@
127
177
  "@nestjs/common": "^11.0.0",
128
178
  "@nestjs/config": "^4.0.0",
129
179
  "@nestjs/core": "^11.0.0",
180
+ "@nestjs/graphql": "^13.0.0",
130
181
  "@nestjs/jwt": "^11.0.0",
131
182
  "@nestjs/microservices": "^11.0.0",
132
183
  "@nestjs/swagger": "^11.0.0",
@@ -137,6 +188,9 @@
137
188
  "rxjs": "^7.8.0"
138
189
  },
139
190
  "peerDependenciesMeta": {
191
+ "@nestjs/graphql": {
192
+ "optional": true
193
+ },
140
194
  "@nestjs/swagger": {
141
195
  "optional": true
142
196
  },