@inverted-tech/fragments 0.5.0 → 0.6.0
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/esm/Authentication/Backup_pb.js +1 -1
- package/dist/esm/Authentication/UserInterface_pb.js +4 -4
- package/dist/esm/Authentication/index.js +5 -5
- package/dist/esm/Authorization/Events/AdminEventInterface_pb.js +6 -6
- package/dist/esm/Authorization/Events/EventError_pb.js +1 -1
- package/dist/esm/Authorization/Events/EventInterface_pb.js +5 -5
- package/dist/esm/Authorization/Events/EventRecord_pb.js +2 -2
- package/dist/esm/Authorization/Events/EventsSettings_pb.js +2 -2
- package/dist/esm/Authorization/Events/index.js +8 -8
- package/dist/esm/Authorization/Payment/AdminPaymentInterface_pb.js +4 -4
- package/dist/esm/Authorization/Payment/BackupInterface_pb.js +1 -1
- package/dist/esm/Authorization/Payment/Crypto/Backup_pb.js +2 -2
- package/dist/esm/Authorization/Payment/Crypto/BitcoinInterface_pb.js +2 -2
- package/dist/esm/Authorization/Payment/Crypto/CryptoSettings_pb.js +1 -1
- package/dist/esm/Authorization/Payment/Crypto/index.js +7 -7
- package/dist/esm/Authorization/Payment/DataRecords_pb.js +1 -1
- package/dist/esm/Authorization/Payment/Fortis/FortisInterface_pb.js +2 -2
- package/dist/esm/Authorization/Payment/Fortis/FortisSettings_pb.js +1 -1
- package/dist/esm/Authorization/Payment/Fortis/index.js +4 -4
- package/dist/esm/Authorization/Payment/Manual/Backup_pb.js +1 -1
- package/dist/esm/Authorization/Payment/Manual/ManualPaymentInterface_pb.js +2 -2
- package/dist/esm/Authorization/Payment/Manual/ManualPaymentSettings_pb.js +1 -1
- package/dist/esm/Authorization/Payment/Manual/index.js +5 -5
- package/dist/esm/Authorization/Payment/PaymentError_pb.js +1 -1
- package/dist/esm/Authorization/Payment/PaymentInterface_pb.js +7 -7
- package/dist/esm/Authorization/Payment/Paypal/PaypalInterface_pb.js +3 -3
- package/dist/esm/Authorization/Payment/Paypal/PaypalSettings_pb.js +1 -1
- package/dist/esm/Authorization/Payment/Paypal/index.js +4 -4
- package/dist/esm/Authorization/Payment/Stripe/StripeInterface_pb.js +5 -5
- package/dist/esm/Authorization/Payment/Stripe/StripeSettings_pb.js +1 -1
- package/dist/esm/Authorization/Payment/Stripe/index.js +5 -5
- package/dist/esm/Authorization/Payment/index.js +12 -12
- package/dist/esm/Authorization/index.js +5 -5
- package/dist/esm/Comment/CommentError_pb.js +1 -1
- package/dist/esm/Comment/CommentInterface_pb.js +4 -4
- package/dist/esm/Comment/index.js +5 -5
- package/dist/esm/Content/AssetBackup_pb.js +1 -1
- package/dist/esm/Content/AssetInterface_pb.js +6 -6
- package/dist/esm/Content/AssetRecord_pb.js +2 -2
- package/dist/esm/Content/AudioAssetRecord_pb.js +1 -1
- package/dist/esm/Content/ContentError_pb.js +1 -1
- package/dist/esm/Content/ContentRecord_pb.js +1 -1
- package/dist/esm/Content/Content_pb.js +3 -3
- package/dist/esm/Content/ImageAssetRecord_pb.js +1 -1
- package/dist/esm/Content/Music/MusicInterface_pb.js +2 -2
- package/dist/esm/Content/Music/index.js +3 -3
- package/dist/esm/Content/Rumble_pb.js +2 -2
- package/dist/esm/Content/Stats/StatsLikeInterface_pb.js +1 -1
- package/dist/esm/Content/Stats/StatsProgressInterface_pb.js +2 -2
- package/dist/esm/Content/Stats/StatsQueryInterface_pb.js +2 -2
- package/dist/esm/Content/Stats/StatsSaveInterface_pb.js +1 -1
- package/dist/esm/Content/Stats/StatsShareInterface_pb.js +1 -1
- package/dist/esm/Content/Stats/index.js +8 -8
- package/dist/esm/Content/Video_pb.js +2 -2
- package/dist/esm/Content/connect/Backup_connect.js +1 -1
- package/dist/esm/Content/index.js +14 -14
- package/dist/esm/CreatorDashboard/Settings/SettingsManager_pb.js +1 -1
- package/dist/esm/CreatorDashboard/Settings/index.js +3 -3
- package/dist/esm/CreatorDashboard/Subscribers/Manage_pb.js +2 -2
- package/dist/esm/CreatorDashboard/Subscribers/index.js +4 -4
- package/dist/esm/CreatorDashboard/index.js +2 -2
- package/dist/esm/Errors_pb.js +1 -1
- package/dist/esm/Generic/index.js +2 -2
- package/dist/esm/Notification/NotificationError_pb.js +1 -1
- package/dist/esm/Notification/NotificationInterface_pb.js +2 -2
- package/dist/esm/Notification/NotificationSettings_pb.js +1 -1
- package/dist/esm/Notification/UserNotificationInterface_pb.js +3 -3
- package/dist/esm/Notification/index.js +7 -7
- package/dist/esm/Page/PageError_pb.js +1 -1
- package/dist/esm/Page/PageInterface_pb.js +3 -3
- package/dist/esm/Page/index.js +4 -4
- package/dist/esm/Settings/Backup_pb.js +1 -1
- package/dist/esm/Settings/SettingsError_pb.js +2 -2
- package/dist/esm/Settings/SettingsInterface_pb.js +6 -6
- package/dist/esm/Settings/SettingsRecord_pb.js +11 -11
- package/dist/esm/Settings/index.js +5 -5
- package/dist/esm/client.js +297 -0
- package/dist/esm/google/api/annotations_pb.js +1 -1
- package/dist/esm/index.js +11 -11
- package/dist/esm/validation.js +10 -10
- package/dist/protos/client.d.ts +185 -0
- package/package.json +39 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inverted-tech/fragments",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Types and JS runtime for Inverted protocol buffers (Fragments)",
|
|
5
5
|
"types": "dist/protos/index.d.ts",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
"types": "./dist/protos/index.d.ts",
|
|
20
20
|
"import": "./dist/esm/protos/index.js"
|
|
21
21
|
},
|
|
22
|
+
"./protos/": {
|
|
23
|
+
"types": "./dist/protos/",
|
|
24
|
+
"import": "./dist/esm/protos/"
|
|
25
|
+
},
|
|
22
26
|
"./protos/*": {
|
|
23
27
|
"types": "./dist/protos/*.d.ts",
|
|
24
28
|
"import": "./dist/esm/protos/*.js"
|
|
@@ -42,8 +46,8 @@
|
|
|
42
46
|
"default": "./dist/esm/Authorization/Events/index.js"
|
|
43
47
|
},
|
|
44
48
|
"./Authorization/Events/": {
|
|
45
|
-
"types": "./dist/protos/Authorization/Events",
|
|
46
|
-
"import": "./dist/esm/Authorization/Events"
|
|
49
|
+
"types": "./dist/protos/Authorization/Events/",
|
|
50
|
+
"import": "./dist/esm/Authorization/Events/"
|
|
47
51
|
},
|
|
48
52
|
"./Authorization/Events/*": {
|
|
49
53
|
"types": "./dist/protos/Authorization/Events/*.d.ts",
|
|
@@ -55,25 +59,25 @@
|
|
|
55
59
|
"default": "./dist/esm/Authorization/Payments/index.js"
|
|
56
60
|
},
|
|
57
61
|
"./Authorization/Payments/": {
|
|
58
|
-
"types": "./dist/protos/Authorization/Payments",
|
|
59
|
-
"import": "./dist/esm/Authorization/Payments"
|
|
62
|
+
"types": "./dist/protos/Authorization/Payments/",
|
|
63
|
+
"import": "./dist/esm/Authorization/Payments/"
|
|
60
64
|
},
|
|
61
65
|
"./Authorization/Payments/*": {
|
|
62
66
|
"types": "./dist/protos/Authorization/Payments/*.d.ts",
|
|
63
67
|
"import": "./dist/esm/Authorization/Payments/*.js"
|
|
64
68
|
},
|
|
65
|
-
"./Authorization/Payments/
|
|
66
|
-
"types": "./dist/protos/Authorization/Payments/
|
|
67
|
-
"import": "./dist/esm/Authorization/Payments/
|
|
68
|
-
"default": "./dist/esm/Authorization/Payments/
|
|
69
|
+
"./Authorization/Payments/Crypto": {
|
|
70
|
+
"types": "./dist/protos/Authorization/Payments/Crypto/index.d.ts",
|
|
71
|
+
"import": "./dist/esm/Authorization/Payments/Crypto/index.js",
|
|
72
|
+
"default": "./dist/esm/Authorization/Payments/Crypto/index.js"
|
|
69
73
|
},
|
|
70
|
-
"./Authorization/Payments/
|
|
71
|
-
"types": "./dist/protos/Authorization/Payments/
|
|
72
|
-
"import": "./dist/esm/Authorization/Payments/
|
|
74
|
+
"./Authorization/Payments/Crypto/": {
|
|
75
|
+
"types": "./dist/protos/Authorization/Payments/Crypto/",
|
|
76
|
+
"import": "./dist/esm/Authorization/Payments/Crypto/"
|
|
73
77
|
},
|
|
74
|
-
"./Authorization/Payments/
|
|
75
|
-
"types": "./dist/protos/Authorization/Payments/
|
|
76
|
-
"import": "./dist/esm/Authorization/Payments/
|
|
78
|
+
"./Authorization/Payments/Crypto/*": {
|
|
79
|
+
"types": "./dist/protos/Authorization/Payments/Crypto/*.d.ts",
|
|
80
|
+
"import": "./dist/esm/Authorization/Payments/Crypto/*.js"
|
|
77
81
|
},
|
|
78
82
|
"./Authorization/Payments/Fortis": {
|
|
79
83
|
"types": "./dist/protos/Authorization/Payments/Fortis/index.d.ts",
|
|
@@ -81,8 +85,8 @@
|
|
|
81
85
|
"default": "./dist/esm/Authorization/Payments/Fortis/index.js"
|
|
82
86
|
},
|
|
83
87
|
"./Authorization/Payments/Fortis/": {
|
|
84
|
-
"types": "./dist/protos/Authorization/Payments/Fortis",
|
|
85
|
-
"import": "./dist/esm/Authorization/Payments/Fortis"
|
|
88
|
+
"types": "./dist/protos/Authorization/Payments/Fortis/",
|
|
89
|
+
"import": "./dist/esm/Authorization/Payments/Fortis/"
|
|
86
90
|
},
|
|
87
91
|
"./Authorization/Payments/Fortis/*": {
|
|
88
92
|
"types": "./dist/protos/Authorization/Payments/Fortis/*.d.ts",
|
|
@@ -94,8 +98,8 @@
|
|
|
94
98
|
"default": "./dist/esm/Authorization/Payments/Manual/index.js"
|
|
95
99
|
},
|
|
96
100
|
"./Authorization/Payments/Manual/": {
|
|
97
|
-
"types": "./dist/protos/Authorization/Payments/Manual",
|
|
98
|
-
"import": "./dist/esm/Authorization/Payments/Manual"
|
|
101
|
+
"types": "./dist/protos/Authorization/Payments/Manual/",
|
|
102
|
+
"import": "./dist/esm/Authorization/Payments/Manual/"
|
|
99
103
|
},
|
|
100
104
|
"./Authorization/Payments/Manual/*": {
|
|
101
105
|
"types": "./dist/protos/Authorization/Payments/Manual/*.d.ts",
|
|
@@ -107,8 +111,8 @@
|
|
|
107
111
|
"default": "./dist/esm/Authorization/Payments/Paypal/index.js"
|
|
108
112
|
},
|
|
109
113
|
"./Authorization/Payments/Paypal/": {
|
|
110
|
-
"types": "./dist/protos/Authorization/Payments/Paypal",
|
|
111
|
-
"import": "./dist/esm/Authorization/Payments/Paypal"
|
|
114
|
+
"types": "./dist/protos/Authorization/Payments/Paypal/",
|
|
115
|
+
"import": "./dist/esm/Authorization/Payments/Paypal/"
|
|
112
116
|
},
|
|
113
117
|
"./Authorization/Payments/Paypal/*": {
|
|
114
118
|
"types": "./dist/protos/Authorization/Payments/Paypal/*.d.ts",
|
|
@@ -120,8 +124,8 @@
|
|
|
120
124
|
"default": "./dist/esm/Authorization/Payments/Stripe/index.js"
|
|
121
125
|
},
|
|
122
126
|
"./Authorization/Payments/Stripe/": {
|
|
123
|
-
"types": "./dist/protos/Authorization/Payments/Stripe",
|
|
124
|
-
"import": "./dist/esm/Authorization/Payments/Stripe"
|
|
127
|
+
"types": "./dist/protos/Authorization/Payments/Stripe/",
|
|
128
|
+
"import": "./dist/esm/Authorization/Payments/Stripe/"
|
|
125
129
|
},
|
|
126
130
|
"./Authorization/Payments/Stripe/*": {
|
|
127
131
|
"types": "./dist/protos/Authorization/Payments/Stripe/*.d.ts",
|
|
@@ -261,6 +265,10 @@
|
|
|
261
265
|
"types": "./dist/protos/validation.d.ts",
|
|
262
266
|
"import": "./dist/esm/validation.js"
|
|
263
267
|
},
|
|
268
|
+
"./client": {
|
|
269
|
+
"types": "./dist/protos/client.d.ts",
|
|
270
|
+
"import": "./dist/esm/client.js"
|
|
271
|
+
},
|
|
264
272
|
"./*": {
|
|
265
273
|
"types": "./dist/*",
|
|
266
274
|
"import": "./dist/esm/*"
|
|
@@ -273,11 +281,12 @@
|
|
|
273
281
|
"devDependencies": {
|
|
274
282
|
"@bufbuild/buf": "^1.6.0",
|
|
275
283
|
"@bufbuild/protoc-gen-es": "^2.10.0",
|
|
276
|
-
"@connectrpc/protoc-gen-connect-es": "^1.7.0",
|
|
277
284
|
"@changesets/cli": "^2.29.7",
|
|
285
|
+
"@connectrpc/protoc-gen-connect-es": "^1.7.0",
|
|
278
286
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
279
287
|
"@typescript-eslint/parser": "^6.21.0",
|
|
280
288
|
"eslint": "^8.57.1",
|
|
289
|
+
"ts-node": "^10.9.2",
|
|
281
290
|
"ts-proto": "^2.8.0",
|
|
282
291
|
"ts-proto-descriptors": "^1.16.0",
|
|
283
292
|
"typescript": "^5.9.3"
|
|
@@ -289,16 +298,20 @@
|
|
|
289
298
|
},
|
|
290
299
|
"scripts": {
|
|
291
300
|
"gen": "node ./generate-ts.mjs && node ./scripts/fix-empty-indexes.mjs",
|
|
292
|
-
"build": "npm run build:esm && npm run build:types",
|
|
301
|
+
"build": "npm run build:esm && npm run postbuild:esm && npm run build:types",
|
|
302
|
+
"test": "npm run build && node --test test/**/*.test.mjs",
|
|
303
|
+
"test:client": "npm run build && node --test test/client.test.mjs",
|
|
304
|
+
"test:basic": "node --test test/client-basic.test.mjs",
|
|
293
305
|
"prebuild:esm": "node ./scripts/fix-empty-indexes.mjs",
|
|
294
306
|
"build:gen": "npm run gen && npm run build",
|
|
295
307
|
"build:esm": "tsc -p tsconfig.esm.json",
|
|
308
|
+
"postbuild:esm": "node ./scripts/fix-all-imports.mjs && node ./scripts/fix-directory-imports.mjs",
|
|
296
309
|
"prebuild:types": "node ./scripts/fix-empty-indexes.mjs",
|
|
297
310
|
"build:types": "tsc -p tsconfig.types.json",
|
|
298
311
|
"lint": "eslint . --ext .ts",
|
|
299
312
|
"lint:gen": "eslint ts-gen --ext .ts",
|
|
300
313
|
"lint:gen:fix": "eslint ts-gen --ext .ts --fix",
|
|
301
|
-
"clean": "node -e \"const fs=require('fs'),path=require('path'); const rm=(p)=>fs.rmSync(p,{recursive:true,force:true}); if(fs.existsSync('dist')) rm('dist'); const base='ts-gen'; if(fs.existsSync(base)){ for(const ent of fs.readdirSync(base,{withFileTypes:true})) { if(ent.name==='validation.ts') continue; rm(path.join(base, ent.name)); } }\"",
|
|
314
|
+
"clean": "node -e \"const fs=require('fs'),path=require('path'); const rm=(p)=>fs.rmSync(p,{recursive:true,force:true}); if(fs.existsSync('dist')) rm('dist'); const base='ts-gen'; if(fs.existsSync(base)){ for(const ent of fs.readdirSync(base,{withFileTypes:true})) { if(ent.name==='validation.ts' || ent.name==='client.ts') continue; rm(path.join(base, ent.name)); } }\"",
|
|
302
315
|
"clean:pack": "node -e \"const fs=require('fs'); const path=require('path'); fs.rmSync('__pack_extract__',{recursive:true,force:true}); fs.readdirSync('.').filter(f=>f.endsWith('.tgz')).forEach(f=>fs.rmSync(path.join('.',f),{force:true})); console.log('Removed __pack_extract__ and *.tgz');\"",
|
|
303
316
|
"clean:dist": "node -e \"const fs=require('fs'); fs.rmSync('dist',{recursive:true,force:true});\"",
|
|
304
317
|
"rebuild": "npm run clean:dist && node ./scripts/ensure-gen.mjs && npm run build",
|