cooptypes 0.5.18 → 0.5.19
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/README.md +3 -0
- package/dist/index.cjs +113 -103
- package/dist/index.d.cts +115 -94
- package/dist/index.d.mts +115 -94
- package/dist/index.d.ts +115 -94
- package/dist/index.mjs +113 -103
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -93,51 +93,51 @@ const index$z = {
|
|
|
93
93
|
Permissions: index$A
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
const authorizations$
|
|
97
|
-
const actionName$
|
|
96
|
+
const authorizations$2b = [{ permissions: [active], actor: _system }];
|
|
97
|
+
const actionName$2b = "createtrans";
|
|
98
98
|
|
|
99
99
|
const createTranslation = {
|
|
100
|
+
__proto__: null,
|
|
101
|
+
actionName: actionName$2b,
|
|
102
|
+
authorizations: authorizations$2b
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const authorizations$2a = [{ permissions: [active], actor: _system }];
|
|
106
|
+
const actionName$2a = "createdraft";
|
|
107
|
+
|
|
108
|
+
const createDraft = {
|
|
100
109
|
__proto__: null,
|
|
101
110
|
actionName: actionName$2a,
|
|
102
111
|
authorizations: authorizations$2a
|
|
103
112
|
};
|
|
104
113
|
|
|
105
114
|
const authorizations$29 = [{ permissions: [active], actor: _system }];
|
|
106
|
-
const actionName$29 = "
|
|
115
|
+
const actionName$29 = "deldraft";
|
|
107
116
|
|
|
108
|
-
const
|
|
117
|
+
const deleteDraft = {
|
|
109
118
|
__proto__: null,
|
|
110
119
|
actionName: actionName$29,
|
|
111
120
|
authorizations: authorizations$29
|
|
112
121
|
};
|
|
113
122
|
|
|
114
123
|
const authorizations$28 = [{ permissions: [active], actor: _system }];
|
|
115
|
-
const actionName$28 = "
|
|
124
|
+
const actionName$28 = "edittrans";
|
|
116
125
|
|
|
117
|
-
const
|
|
126
|
+
const editTranslation = {
|
|
118
127
|
__proto__: null,
|
|
119
128
|
actionName: actionName$28,
|
|
120
129
|
authorizations: authorizations$28
|
|
121
130
|
};
|
|
122
131
|
|
|
123
|
-
const authorizations$27 = [{ permissions: [active], actor:
|
|
124
|
-
const actionName$27 = "
|
|
132
|
+
const authorizations$27 = [{ permissions: [active], actor: _draft }];
|
|
133
|
+
const actionName$27 = "newid";
|
|
125
134
|
|
|
126
|
-
const
|
|
135
|
+
const newId = {
|
|
127
136
|
__proto__: null,
|
|
128
137
|
actionName: actionName$27,
|
|
129
138
|
authorizations: authorizations$27
|
|
130
139
|
};
|
|
131
140
|
|
|
132
|
-
const authorizations$26 = [{ permissions: [active], actor: _draft }];
|
|
133
|
-
const actionName$26 = "newid";
|
|
134
|
-
|
|
135
|
-
const newId = {
|
|
136
|
-
__proto__: null,
|
|
137
|
-
actionName: actionName$26,
|
|
138
|
-
authorizations: authorizations$26
|
|
139
|
-
};
|
|
140
|
-
|
|
141
141
|
const index$y = {
|
|
142
142
|
__proto__: null,
|
|
143
143
|
CreateDraft: createDraft,
|
|
@@ -185,145 +185,145 @@ const index$w = {
|
|
|
185
185
|
contractName: contractName$9
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
const authorizations$
|
|
189
|
-
const actionName$
|
|
188
|
+
const authorizations$26 = [{ permissions: [active], actor: _fund }];
|
|
189
|
+
const actionName$26 = "addaccum";
|
|
190
190
|
|
|
191
191
|
const addAccumulation = {
|
|
192
|
+
__proto__: null,
|
|
193
|
+
actionName: actionName$26,
|
|
194
|
+
authorizations: authorizations$26
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
const authorizations$25 = [{ permissions: [active], actor: _fund }];
|
|
198
|
+
const actionName$25 = "subaccum";
|
|
199
|
+
|
|
200
|
+
const subAccumulation = {
|
|
192
201
|
__proto__: null,
|
|
193
202
|
actionName: actionName$25,
|
|
194
203
|
authorizations: authorizations$25
|
|
195
204
|
};
|
|
196
205
|
|
|
197
|
-
const authorizations$24 = [{ permissions: [active], actor:
|
|
198
|
-
const actionName$24 = "
|
|
206
|
+
const authorizations$24 = [{ permissions: [active], actor: _gateway }];
|
|
207
|
+
const actionName$24 = "addcirculate";
|
|
199
208
|
|
|
200
|
-
const
|
|
209
|
+
const addCirculation = {
|
|
201
210
|
__proto__: null,
|
|
202
211
|
actionName: actionName$24,
|
|
203
212
|
authorizations: authorizations$24
|
|
204
213
|
};
|
|
205
214
|
|
|
206
|
-
const authorizations$23 = [{ permissions: [active], actor:
|
|
207
|
-
const actionName$23 = "
|
|
215
|
+
const authorizations$23 = [{ permissions: [active], actor: _fund }];
|
|
216
|
+
const actionName$23 = "addexpense";
|
|
208
217
|
|
|
209
|
-
const
|
|
218
|
+
const addExpense = {
|
|
210
219
|
__proto__: null,
|
|
211
220
|
actionName: actionName$23,
|
|
212
221
|
authorizations: authorizations$23
|
|
213
222
|
};
|
|
214
223
|
|
|
215
|
-
const authorizations$22 = [{ permissions: [active], actor:
|
|
216
|
-
const actionName$22 = "
|
|
224
|
+
const authorizations$22 = [{ permissions: [active], actor: _soviet }];
|
|
225
|
+
const actionName$22 = "authorize";
|
|
217
226
|
|
|
218
|
-
const
|
|
227
|
+
const authorizeWithdraw = {
|
|
219
228
|
__proto__: null,
|
|
220
229
|
actionName: actionName$22,
|
|
221
230
|
authorizations: authorizations$22
|
|
222
231
|
};
|
|
223
232
|
|
|
224
|
-
const authorizations$21 = [{ permissions: [active], actor:
|
|
225
|
-
const actionName$21 = "
|
|
233
|
+
const authorizations$21 = [{ permissions: [active, special], actor: _admin }];
|
|
234
|
+
const actionName$21 = "complete";
|
|
226
235
|
|
|
227
|
-
const
|
|
236
|
+
const completeWithdraw$1 = {
|
|
228
237
|
__proto__: null,
|
|
229
238
|
actionName: actionName$21,
|
|
230
239
|
authorizations: authorizations$21
|
|
231
240
|
};
|
|
232
241
|
|
|
233
|
-
const authorizations$20 = [{ permissions: [active
|
|
234
|
-
const actionName$20 = "
|
|
242
|
+
const authorizations$20 = [{ permissions: [active], actor: _fund }];
|
|
243
|
+
const actionName$20 = "newfund";
|
|
235
244
|
|
|
236
|
-
const
|
|
245
|
+
const newFund = {
|
|
237
246
|
__proto__: null,
|
|
238
247
|
actionName: actionName$20,
|
|
239
248
|
authorizations: authorizations$20
|
|
240
249
|
};
|
|
241
250
|
|
|
242
|
-
const authorizations$1$ = [{ permissions: [active], actor:
|
|
243
|
-
const actionName$1$ = "
|
|
251
|
+
const authorizations$1$ = [{ permissions: [active], actor: _chairman }];
|
|
252
|
+
const actionName$1$ = "createfund";
|
|
244
253
|
|
|
245
|
-
const
|
|
254
|
+
const createFund = {
|
|
246
255
|
__proto__: null,
|
|
247
256
|
actionName: actionName$1$,
|
|
248
257
|
authorizations: authorizations$1$
|
|
249
258
|
};
|
|
250
259
|
|
|
251
260
|
const authorizations$1_ = [{ permissions: [active], actor: _chairman }];
|
|
252
|
-
const actionName$1_ = "
|
|
261
|
+
const actionName$1_ = "delfund";
|
|
253
262
|
|
|
254
|
-
const
|
|
263
|
+
const deleteFund = {
|
|
255
264
|
__proto__: null,
|
|
256
265
|
actionName: actionName$1_,
|
|
257
266
|
authorizations: authorizations$1_
|
|
258
267
|
};
|
|
259
268
|
|
|
260
269
|
const authorizations$1Z = [{ permissions: [active], actor: _chairman }];
|
|
261
|
-
const actionName$1Z = "
|
|
270
|
+
const actionName$1Z = "editfund";
|
|
262
271
|
|
|
263
|
-
const
|
|
272
|
+
const editFund = {
|
|
264
273
|
__proto__: null,
|
|
265
274
|
actionName: actionName$1Z,
|
|
266
275
|
authorizations: authorizations$1Z
|
|
267
276
|
};
|
|
268
277
|
|
|
269
|
-
const authorizations$1Y = [
|
|
270
|
-
|
|
278
|
+
const authorizations$1Y = [
|
|
279
|
+
{ permissions: [active], actor: _username },
|
|
280
|
+
{ permissions: [active, special], actor: _admin },
|
|
281
|
+
{ permissions: [active], actor: _contract }
|
|
282
|
+
];
|
|
283
|
+
const actionName$1Y = "fundwithdraw";
|
|
271
284
|
|
|
272
|
-
const
|
|
285
|
+
const createWithdraw$1 = {
|
|
273
286
|
__proto__: null,
|
|
274
287
|
actionName: actionName$1Y,
|
|
275
288
|
authorizations: authorizations$1Y
|
|
276
289
|
};
|
|
277
290
|
|
|
278
|
-
const authorizations$1X = [
|
|
279
|
-
|
|
280
|
-
{ permissions: [active, special], actor: _admin },
|
|
281
|
-
{ permissions: [active], actor: _contract }
|
|
282
|
-
];
|
|
283
|
-
const actionName$1X = "fundwithdraw";
|
|
291
|
+
const authorizations$1X = [{ permissions: [active], actor: _soviet }];
|
|
292
|
+
const actionName$1X = "init";
|
|
284
293
|
|
|
285
|
-
const
|
|
294
|
+
const init$2 = {
|
|
286
295
|
__proto__: null,
|
|
287
296
|
actionName: actionName$1X,
|
|
288
297
|
authorizations: authorizations$1X
|
|
289
298
|
};
|
|
290
299
|
|
|
291
|
-
const authorizations$1W = [{ permissions: [active], actor:
|
|
292
|
-
const actionName$1W = "
|
|
300
|
+
const authorizations$1W = [{ permissions: [active], actor: _fund }];
|
|
301
|
+
const actionName$1W = "newwithdraw";
|
|
293
302
|
|
|
294
|
-
const
|
|
303
|
+
const newWithdraw = {
|
|
295
304
|
__proto__: null,
|
|
296
305
|
actionName: actionName$1W,
|
|
297
306
|
authorizations: authorizations$1W
|
|
298
307
|
};
|
|
299
308
|
|
|
300
|
-
const authorizations$1V = [{ permissions: [active], actor:
|
|
301
|
-
const actionName$1V = "
|
|
309
|
+
const authorizations$1V = [{ permissions: [active], actor: _marketplace }, { permissions: [active], actor: _gateway }];
|
|
310
|
+
const actionName$1V = "spreadamount";
|
|
302
311
|
|
|
303
|
-
const
|
|
312
|
+
const spreadAmount = {
|
|
304
313
|
__proto__: null,
|
|
305
314
|
actionName: actionName$1V,
|
|
306
315
|
authorizations: authorizations$1V
|
|
307
316
|
};
|
|
308
317
|
|
|
309
|
-
const authorizations$1U = [{ permissions: [active], actor:
|
|
310
|
-
const actionName$1U = "
|
|
318
|
+
const authorizations$1U = [{ permissions: [active], actor: _gateway }];
|
|
319
|
+
const actionName$1U = "subcirculate";
|
|
311
320
|
|
|
312
|
-
const
|
|
321
|
+
const subCirculation = {
|
|
313
322
|
__proto__: null,
|
|
314
323
|
actionName: actionName$1U,
|
|
315
324
|
authorizations: authorizations$1U
|
|
316
325
|
};
|
|
317
326
|
|
|
318
|
-
const authorizations$1T = [{ permissions: [active], actor: _gateway }];
|
|
319
|
-
const actionName$1T = "subcirculate";
|
|
320
|
-
|
|
321
|
-
const subCirculation = {
|
|
322
|
-
__proto__: null,
|
|
323
|
-
actionName: actionName$1T,
|
|
324
|
-
authorizations: authorizations$1T
|
|
325
|
-
};
|
|
326
|
-
|
|
327
327
|
const index$v = {
|
|
328
328
|
__proto__: null,
|
|
329
329
|
AddAccumulation: addAccumulation,
|
|
@@ -401,78 +401,78 @@ const index$t = {
|
|
|
401
401
|
contractName: contractName$8
|
|
402
402
|
};
|
|
403
403
|
|
|
404
|
-
const authorizations$
|
|
405
|
-
const actionName$
|
|
404
|
+
const authorizations$1T = [{ permissions: [active, special], actor: _coopname }];
|
|
405
|
+
const actionName$1T = "deposit";
|
|
406
406
|
|
|
407
407
|
const createDeposit = {
|
|
408
|
+
__proto__: null,
|
|
409
|
+
actionName: actionName$1T,
|
|
410
|
+
authorizations: authorizations$1T
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
const authorizations$1S = [{ permissions: [active, special], actor: _admin }];
|
|
414
|
+
const actionName$1S = "dpcomplete";
|
|
415
|
+
|
|
416
|
+
const completeDeposit = {
|
|
408
417
|
__proto__: null,
|
|
409
418
|
actionName: actionName$1S,
|
|
410
419
|
authorizations: authorizations$1S
|
|
411
420
|
};
|
|
412
421
|
|
|
413
422
|
const authorizations$1R = [{ permissions: [active, special], actor: _admin }];
|
|
414
|
-
const actionName$1R = "
|
|
423
|
+
const actionName$1R = "dpfail";
|
|
415
424
|
|
|
416
|
-
const
|
|
425
|
+
const failDeposit = {
|
|
417
426
|
__proto__: null,
|
|
418
427
|
actionName: actionName$1R,
|
|
419
428
|
authorizations: authorizations$1R
|
|
420
429
|
};
|
|
421
430
|
|
|
422
|
-
const authorizations$1Q = [{ permissions: [active
|
|
423
|
-
const actionName$1Q = "
|
|
431
|
+
const authorizations$1Q = [{ permissions: [active], actor: _gateway }];
|
|
432
|
+
const actionName$1Q = "newdepositid";
|
|
424
433
|
|
|
425
|
-
const
|
|
434
|
+
const newDepositId = {
|
|
426
435
|
__proto__: null,
|
|
427
436
|
actionName: actionName$1Q,
|
|
428
437
|
authorizations: authorizations$1Q
|
|
429
438
|
};
|
|
430
439
|
|
|
431
440
|
const authorizations$1P = [{ permissions: [active], actor: _gateway }];
|
|
432
|
-
const actionName$1P = "
|
|
441
|
+
const actionName$1P = "newwithdrid";
|
|
433
442
|
|
|
434
|
-
const
|
|
443
|
+
const newWithdrawId = {
|
|
435
444
|
__proto__: null,
|
|
436
445
|
actionName: actionName$1P,
|
|
437
446
|
authorizations: authorizations$1P
|
|
438
447
|
};
|
|
439
448
|
|
|
440
|
-
const authorizations$1O = [{ permissions: [active], actor:
|
|
441
|
-
const actionName$1O = "
|
|
449
|
+
const authorizations$1O = [{ permissions: [active], actor: _username }];
|
|
450
|
+
const actionName$1O = "withdraw";
|
|
442
451
|
|
|
443
|
-
const
|
|
452
|
+
const createWithdraw = {
|
|
444
453
|
__proto__: null,
|
|
445
454
|
actionName: actionName$1O,
|
|
446
455
|
authorizations: authorizations$1O
|
|
447
456
|
};
|
|
448
457
|
|
|
449
|
-
const authorizations$1N = [{ permissions: [active], actor:
|
|
450
|
-
const actionName$1N = "
|
|
458
|
+
const authorizations$1N = [{ permissions: [active, special], actor: _admin }];
|
|
459
|
+
const actionName$1N = "wthdcomplete";
|
|
451
460
|
|
|
452
|
-
const
|
|
461
|
+
const completeWithdraw = {
|
|
453
462
|
__proto__: null,
|
|
454
463
|
actionName: actionName$1N,
|
|
455
464
|
authorizations: authorizations$1N
|
|
456
465
|
};
|
|
457
466
|
|
|
458
467
|
const authorizations$1M = [{ permissions: [active, special], actor: _admin }];
|
|
459
|
-
const actionName$1M = "
|
|
468
|
+
const actionName$1M = "wthdfail";
|
|
460
469
|
|
|
461
|
-
const
|
|
470
|
+
const failWithdraw = {
|
|
462
471
|
__proto__: null,
|
|
463
472
|
actionName: actionName$1M,
|
|
464
473
|
authorizations: authorizations$1M
|
|
465
474
|
};
|
|
466
475
|
|
|
467
|
-
const authorizations$1L = [{ permissions: [active, special], actor: _admin }];
|
|
468
|
-
const actionName$1L = "wthdfail";
|
|
469
|
-
|
|
470
|
-
const failWithdraw = {
|
|
471
|
-
__proto__: null,
|
|
472
|
-
actionName: actionName$1L,
|
|
473
|
-
authorizations: authorizations$1L
|
|
474
|
-
};
|
|
475
|
-
|
|
476
476
|
const index$s = {
|
|
477
477
|
__proto__: null,
|
|
478
478
|
CompleteDeposit: completeDeposit,
|
|
@@ -523,28 +523,37 @@ const index$q = {
|
|
|
523
523
|
contractName: contractName$7
|
|
524
524
|
};
|
|
525
525
|
|
|
526
|
-
const authorizations$
|
|
527
|
-
const actionName$
|
|
526
|
+
const authorizations$1L = [{ permissions: [active], actor: _system }];
|
|
527
|
+
const actionName$1L = "verificate";
|
|
528
528
|
|
|
529
529
|
const verificateAccount = {
|
|
530
|
+
__proto__: null,
|
|
531
|
+
actionName: actionName$1L,
|
|
532
|
+
authorizations: authorizations$1L
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
const authorizations$1K = [{ permissions: [active], actor: _username }];
|
|
536
|
+
const actionName$1K = "update";
|
|
537
|
+
|
|
538
|
+
const updateAccount = {
|
|
530
539
|
__proto__: null,
|
|
531
540
|
actionName: actionName$1K,
|
|
532
541
|
authorizations: authorizations$1K
|
|
533
542
|
};
|
|
534
543
|
|
|
535
|
-
const authorizations$1J = [{ permissions: [active], actor:
|
|
536
|
-
const actionName$1J = "
|
|
544
|
+
const authorizations$1J = [{ permissions: [active, special], actor: _admin }];
|
|
545
|
+
const actionName$1J = "newaccount";
|
|
537
546
|
|
|
538
|
-
const
|
|
547
|
+
const createAccount$1 = {
|
|
539
548
|
__proto__: null,
|
|
540
549
|
actionName: actionName$1J,
|
|
541
550
|
authorizations: authorizations$1J
|
|
542
551
|
};
|
|
543
552
|
|
|
544
553
|
const authorizations$1I = [{ permissions: [active, special], actor: _admin }];
|
|
545
|
-
const actionName$1I = "
|
|
554
|
+
const actionName$1I = "reguser";
|
|
546
555
|
|
|
547
|
-
const
|
|
556
|
+
const registerUser = {
|
|
548
557
|
__proto__: null,
|
|
549
558
|
actionName: actionName$1I,
|
|
550
559
|
authorizations: authorizations$1I
|
|
@@ -603,6 +612,7 @@ const index$p = {
|
|
|
603
612
|
Init: init$1,
|
|
604
613
|
JoinCooperative: joinCooperative,
|
|
605
614
|
RegisterOrganization: registerOrganization,
|
|
615
|
+
RegisterUser: registerUser,
|
|
606
616
|
UpdateAccount: updateAccount,
|
|
607
617
|
VerificateAccount: verificateAccount
|
|
608
618
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cooptypes",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.19",
|
|
5
5
|
"packageManager": "pnpm@9.0.6",
|
|
6
6
|
"description": "_description_",
|
|
7
7
|
"author": "Alex Ant <dacom.dark.sun@gmail.com>",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"dev": "unbuild --stub",
|
|
39
39
|
"lint": "eslint .",
|
|
40
40
|
"prepublishOnly": "nr build",
|
|
41
|
-
"release": "bumpp && npm publish",
|
|
41
|
+
"release": "bumpp && npm publish && pnpm gh-pages --nojekyll -d docs",
|
|
42
42
|
"start": "esno src/index.ts",
|
|
43
43
|
"test": "vitest",
|
|
44
44
|
"typecheck": "tsc --noEmit",
|
|
45
45
|
"prepare": "simple-git-hooks",
|
|
46
46
|
"doc": "typedoc",
|
|
47
|
-
"publish
|
|
47
|
+
"docs-publish": "pnpm gh-pages --nojekyll -d docs --repo git@github.com:copenomics/docs.git -e cooptypes --add"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@typescript-eslint/parser": "^7.8.0"
|