ic-mops 1.1.2 → 1.3.0-pre.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/CHANGELOG.md +9 -0
- package/bundle/cli.tgz +0 -0
- package/cli.ts +65 -9
- package/commands/install/install-local-dep.ts +9 -2
- package/commands/maintainer.ts +105 -0
- package/commands/owner.ts +105 -0
- package/commands/replica.ts +38 -9
- package/commands/test/test.ts +18 -1
- package/commands/watch/parseDfxJson.ts +2 -2
- package/declarations/main/main.did +44 -23
- package/declarations/main/main.did.d.ts +45 -22
- package/declarations/main/main.did.js +55 -27
- package/dist/cli.js +55 -8
- package/dist/commands/install/install-local-dep.js +6 -1
- package/dist/commands/maintainer.d.ts +3 -0
- package/dist/commands/maintainer.js +88 -0
- package/dist/commands/owner.d.ts +3 -0
- package/dist/commands/owner.js +88 -0
- package/dist/commands/replica.d.ts +3 -2
- package/dist/commands/replica.js +34 -7
- package/dist/commands/test/test.d.ts +2 -1
- package/dist/commands/test/test.js +14 -0
- package/dist/commands/watch/parseDfxJson.js +2 -2
- package/dist/declarations/main/main.did +44 -23
- package/dist/declarations/main/main.did.d.ts +45 -22
- package/dist/declarations/main/main.did.js +55 -27
- package/dist/package.json +2 -2
- package/dist/resolve-packages.js +6 -2
- package/package.json +2 -2
- package/resolve-packages.ts +6 -2
- package/commands/transfer-ownership.ts +0 -45
- package/dist/commands/transfer-ownership.d.ts +0 -1
- package/dist/commands/transfer-ownership.js +0 -38
|
@@ -90,7 +90,7 @@ type Result_6 =
|
|
|
90
90
|
variant {
|
|
91
91
|
err: Err;
|
|
92
92
|
ok: vec record {
|
|
93
|
-
|
|
93
|
+
PackageName__1;
|
|
94
94
|
PackageVersion__1;
|
|
95
95
|
};
|
|
96
96
|
};
|
|
@@ -106,18 +106,18 @@ type Result_4 =
|
|
|
106
106
|
};
|
|
107
107
|
type Result_3 =
|
|
108
108
|
variant {
|
|
109
|
-
err:
|
|
110
|
-
ok
|
|
109
|
+
err: text;
|
|
110
|
+
ok;
|
|
111
111
|
};
|
|
112
112
|
type Result_2 =
|
|
113
113
|
variant {
|
|
114
114
|
err: Err;
|
|
115
|
-
ok:
|
|
115
|
+
ok: FileId;
|
|
116
116
|
};
|
|
117
117
|
type Result_1 =
|
|
118
118
|
variant {
|
|
119
|
-
err:
|
|
120
|
-
ok;
|
|
119
|
+
err: Err;
|
|
120
|
+
ok: PublishingId;
|
|
121
121
|
};
|
|
122
122
|
type Result =
|
|
123
123
|
variant {
|
|
@@ -157,9 +157,12 @@ type PackageSummary__1 =
|
|
|
157
157
|
downloadsInLast7Days: nat;
|
|
158
158
|
downloadsTotal: nat;
|
|
159
159
|
highestVersion: PackageVersion;
|
|
160
|
+
maintainers: vec User;
|
|
160
161
|
owner: principal;
|
|
161
162
|
ownerInfo: User;
|
|
163
|
+
owners: vec User;
|
|
162
164
|
publication: PackagePublication;
|
|
165
|
+
publisher: User;
|
|
163
166
|
quality: PackageQuality;
|
|
164
167
|
};
|
|
165
168
|
type PackageSummaryWithChanges__1 =
|
|
@@ -171,9 +174,12 @@ type PackageSummaryWithChanges__1 =
|
|
|
171
174
|
downloadsInLast7Days: nat;
|
|
172
175
|
downloadsTotal: nat;
|
|
173
176
|
highestVersion: PackageVersion;
|
|
177
|
+
maintainers: vec User;
|
|
174
178
|
owner: principal;
|
|
175
179
|
ownerInfo: User;
|
|
180
|
+
owners: vec User;
|
|
176
181
|
publication: PackagePublication;
|
|
182
|
+
publisher: User;
|
|
177
183
|
quality: PackageQuality;
|
|
178
184
|
};
|
|
179
185
|
type PackageSummaryWithChanges =
|
|
@@ -185,9 +191,12 @@ type PackageSummaryWithChanges =
|
|
|
185
191
|
downloadsInLast7Days: nat;
|
|
186
192
|
downloadsTotal: nat;
|
|
187
193
|
highestVersion: PackageVersion;
|
|
194
|
+
maintainers: vec User;
|
|
188
195
|
owner: principal;
|
|
189
196
|
ownerInfo: User;
|
|
197
|
+
owners: vec User;
|
|
190
198
|
publication: PackagePublication;
|
|
199
|
+
publisher: User;
|
|
191
200
|
quality: PackageQuality;
|
|
192
201
|
};
|
|
193
202
|
type PackageSummary =
|
|
@@ -198,9 +207,12 @@ type PackageSummary =
|
|
|
198
207
|
downloadsInLast7Days: nat;
|
|
199
208
|
downloadsTotal: nat;
|
|
200
209
|
highestVersion: PackageVersion;
|
|
210
|
+
maintainers: vec User;
|
|
201
211
|
owner: principal;
|
|
202
212
|
ownerInfo: User;
|
|
213
|
+
owners: vec User;
|
|
203
214
|
publication: PackagePublication;
|
|
215
|
+
publisher: User;
|
|
204
216
|
quality: PackageQuality;
|
|
205
217
|
};
|
|
206
218
|
type PackageQuality =
|
|
@@ -243,9 +255,12 @@ type PackageDetails =
|
|
|
243
255
|
downloadsTotal: nat;
|
|
244
256
|
fileStats: PackageFileStatsPublic;
|
|
245
257
|
highestVersion: PackageVersion;
|
|
258
|
+
maintainers: vec User;
|
|
246
259
|
owner: principal;
|
|
247
260
|
ownerInfo: User;
|
|
261
|
+
owners: vec User;
|
|
248
262
|
publication: PackagePublication;
|
|
263
|
+
publisher: User;
|
|
249
264
|
quality: PackageQuality;
|
|
250
265
|
testStats: TestStats__1;
|
|
251
266
|
versionHistory: vec PackageSummaryWithChanges__1;
|
|
@@ -263,7 +278,7 @@ type PackageConfigV3_Publishing =
|
|
|
263
278
|
keywords: vec text;
|
|
264
279
|
license: text;
|
|
265
280
|
moc: text;
|
|
266
|
-
name:
|
|
281
|
+
name: PackageName;
|
|
267
282
|
readme: text;
|
|
268
283
|
repository: text;
|
|
269
284
|
requirements: opt vec Requirement;
|
|
@@ -283,7 +298,7 @@ type PackageConfigV3 =
|
|
|
283
298
|
keywords: vec text;
|
|
284
299
|
license: text;
|
|
285
300
|
moc: text;
|
|
286
|
-
name:
|
|
301
|
+
name: PackageName;
|
|
287
302
|
readme: text;
|
|
288
303
|
repository: text;
|
|
289
304
|
requirements: vec Requirement;
|
|
@@ -301,6 +316,8 @@ type PackageChanges =
|
|
|
301
316
|
};
|
|
302
317
|
type Main =
|
|
303
318
|
service {
|
|
319
|
+
addMaintainer: (PackageName__1, principal) -> (Result_3);
|
|
320
|
+
addOwner: (PackageName__1, principal) -> (Result_3);
|
|
304
321
|
backup: () -> ();
|
|
305
322
|
computeHashesForExistingFiles: () -> ();
|
|
306
323
|
finishPublish: (PublishingId) -> (Result);
|
|
@@ -308,14 +325,14 @@ type Main =
|
|
|
308
325
|
getBackupCanisterId: () -> (principal) query;
|
|
309
326
|
getDefaultPackages: (text) ->
|
|
310
327
|
(vec record {
|
|
311
|
-
|
|
328
|
+
PackageName__1;
|
|
312
329
|
PackageVersion__1;
|
|
313
330
|
}) query;
|
|
314
331
|
getDownloadTrendByPackageId: (PackageId) ->
|
|
315
332
|
(vec DownloadsSnapshot__1) query;
|
|
316
|
-
getDownloadTrendByPackageName: (
|
|
333
|
+
getDownloadTrendByPackageName: (PackageName__1) ->
|
|
317
334
|
(vec DownloadsSnapshot__1) query;
|
|
318
|
-
getFileHashes: (
|
|
335
|
+
getFileHashes: (PackageName__1, PackageVersion__1) -> (Result_8);
|
|
319
336
|
getFileHashesByPackageIds: (vec PackageId) ->
|
|
320
337
|
(vec record {
|
|
321
338
|
PackageId;
|
|
@@ -324,19 +341,22 @@ type Main =
|
|
|
324
341
|
blob;
|
|
325
342
|
};
|
|
326
343
|
});
|
|
327
|
-
getFileHashesQuery: (
|
|
328
|
-
|
|
344
|
+
getFileHashesQuery: (PackageName__1, PackageVersion__1) ->
|
|
345
|
+
(Result_8) query;
|
|
346
|
+
getFileIds: (PackageName__1, PackageVersion__1) -> (Result_7) query;
|
|
329
347
|
getHighestSemverBatch:
|
|
330
348
|
(vec record {
|
|
331
|
-
|
|
349
|
+
PackageName__1;
|
|
332
350
|
PackageVersion__1;
|
|
333
351
|
SemverPart;
|
|
334
352
|
}) -> (Result_6) query;
|
|
335
|
-
getHighestVersion: (
|
|
353
|
+
getHighestVersion: (PackageName__1) -> (Result_5) query;
|
|
336
354
|
getMostDownloadedPackages: () -> (vec PackageSummary) query;
|
|
337
355
|
getMostDownloadedPackagesIn7Days: () -> (vec PackageSummary) query;
|
|
338
356
|
getNewPackages: () -> (vec PackageSummary) query;
|
|
339
|
-
getPackageDetails: (
|
|
357
|
+
getPackageDetails: (PackageName__1, PackageVersion__1) -> (Result_4) query;
|
|
358
|
+
getPackageMaintainers: (PackageName__1) -> (vec principal) query;
|
|
359
|
+
getPackageOwners: (PackageName__1) -> (vec principal) query;
|
|
340
360
|
getPackagesByCategory: () -> (vec record {
|
|
341
361
|
text;
|
|
342
362
|
vec PackageSummary;
|
|
@@ -350,17 +370,18 @@ type Main =
|
|
|
350
370
|
getTotalPackages: () -> (nat) query;
|
|
351
371
|
getUser: (principal) -> (opt User__1) query;
|
|
352
372
|
http_request: (Request) -> (Response) query;
|
|
353
|
-
notifyInstall: (
|
|
373
|
+
notifyInstall: (PackageName__1, PackageVersion__1) -> () oneway;
|
|
354
374
|
notifyInstalls: (vec record {
|
|
355
|
-
|
|
375
|
+
PackageName__1;
|
|
356
376
|
PackageVersion__1;
|
|
357
377
|
}) -> () oneway;
|
|
378
|
+
removeMaintainer: (PackageName__1, principal) -> (Result_3);
|
|
379
|
+
removeOwner: (PackageName__1, principal) -> (Result_3);
|
|
358
380
|
restore: (nat) -> ();
|
|
359
381
|
search: (Text, opt nat, opt nat) -> (vec PackageSummary, PageCount) query;
|
|
360
|
-
setUserProp: (text, text) -> (
|
|
361
|
-
startFileUpload: (PublishingId, Text, nat, blob) -> (
|
|
362
|
-
startPublish: (PackageConfigV3_Publishing) -> (
|
|
363
|
-
transferOwnership: (PackageName, principal) -> (Result_1);
|
|
382
|
+
setUserProp: (text, text) -> (Result_3);
|
|
383
|
+
startFileUpload: (PublishingId, Text, nat, blob) -> (Result_2);
|
|
384
|
+
startPublish: (PackageConfigV3_Publishing) -> (Result_1);
|
|
364
385
|
transformRequest: (HttpTransformArg) -> (HttpResponse) query;
|
|
365
386
|
uploadBenchmarks: (PublishingId, Benchmarks) -> (Result);
|
|
366
387
|
uploadFileChunk: (PublishingId, FileId, nat, blob) -> (Result);
|
|
@@ -410,7 +431,7 @@ type DepsStatus =
|
|
|
410
431
|
};
|
|
411
432
|
type DependencyV2 =
|
|
412
433
|
record {
|
|
413
|
-
name:
|
|
434
|
+
name: PackageName;
|
|
414
435
|
repo: text;
|
|
415
436
|
version: text;
|
|
416
437
|
};
|
|
@@ -25,7 +25,7 @@ export interface DepChange {
|
|
|
25
25
|
'newVersion' : string,
|
|
26
26
|
}
|
|
27
27
|
export interface DependencyV2 {
|
|
28
|
-
'name' :
|
|
28
|
+
'name' : PackageName,
|
|
29
29
|
'repo' : string,
|
|
30
30
|
'version' : string,
|
|
31
31
|
}
|
|
@@ -56,6 +56,8 @@ export interface HttpTransformArg {
|
|
|
56
56
|
'response' : HttpResponse,
|
|
57
57
|
}
|
|
58
58
|
export interface Main {
|
|
59
|
+
'addMaintainer' : ActorMethod<[PackageName__1, Principal], Result_3>,
|
|
60
|
+
'addOwner' : ActorMethod<[PackageName__1, Principal], Result_3>,
|
|
59
61
|
'backup' : ActorMethod<[], undefined>,
|
|
60
62
|
'computeHashesForExistingFiles' : ActorMethod<[], undefined>,
|
|
61
63
|
'finishPublish' : ActorMethod<[PublishingId], Result>,
|
|
@@ -63,35 +65,40 @@ export interface Main {
|
|
|
63
65
|
'getBackupCanisterId' : ActorMethod<[], Principal>,
|
|
64
66
|
'getDefaultPackages' : ActorMethod<
|
|
65
67
|
[string],
|
|
66
|
-
Array<[
|
|
68
|
+
Array<[PackageName__1, PackageVersion__1]>
|
|
67
69
|
>,
|
|
68
70
|
'getDownloadTrendByPackageId' : ActorMethod<
|
|
69
71
|
[PackageId],
|
|
70
72
|
Array<DownloadsSnapshot__1>
|
|
71
73
|
>,
|
|
72
74
|
'getDownloadTrendByPackageName' : ActorMethod<
|
|
73
|
-
[
|
|
75
|
+
[PackageName__1],
|
|
74
76
|
Array<DownloadsSnapshot__1>
|
|
75
77
|
>,
|
|
76
|
-
'getFileHashes' : ActorMethod<[
|
|
78
|
+
'getFileHashes' : ActorMethod<[PackageName__1, PackageVersion__1], Result_8>,
|
|
77
79
|
'getFileHashesByPackageIds' : ActorMethod<
|
|
78
80
|
[Array<PackageId>],
|
|
79
81
|
Array<[PackageId, Array<[FileId, Uint8Array | number[]]>]>
|
|
80
82
|
>,
|
|
81
83
|
'getFileHashesQuery' : ActorMethod<
|
|
82
|
-
[
|
|
84
|
+
[PackageName__1, PackageVersion__1],
|
|
83
85
|
Result_8
|
|
84
86
|
>,
|
|
85
|
-
'getFileIds' : ActorMethod<[
|
|
87
|
+
'getFileIds' : ActorMethod<[PackageName__1, PackageVersion__1], Result_7>,
|
|
86
88
|
'getHighestSemverBatch' : ActorMethod<
|
|
87
|
-
[Array<[
|
|
89
|
+
[Array<[PackageName__1, PackageVersion__1, SemverPart]>],
|
|
88
90
|
Result_6
|
|
89
91
|
>,
|
|
90
|
-
'getHighestVersion' : ActorMethod<[
|
|
92
|
+
'getHighestVersion' : ActorMethod<[PackageName__1], Result_5>,
|
|
91
93
|
'getMostDownloadedPackages' : ActorMethod<[], Array<PackageSummary>>,
|
|
92
94
|
'getMostDownloadedPackagesIn7Days' : ActorMethod<[], Array<PackageSummary>>,
|
|
93
95
|
'getNewPackages' : ActorMethod<[], Array<PackageSummary>>,
|
|
94
|
-
'getPackageDetails' : ActorMethod<
|
|
96
|
+
'getPackageDetails' : ActorMethod<
|
|
97
|
+
[PackageName__1, PackageVersion__1],
|
|
98
|
+
Result_4
|
|
99
|
+
>,
|
|
100
|
+
'getPackageMaintainers' : ActorMethod<[PackageName__1], Array<Principal>>,
|
|
101
|
+
'getPackageOwners' : ActorMethod<[PackageName__1], Array<Principal>>,
|
|
95
102
|
'getPackagesByCategory' : ActorMethod<
|
|
96
103
|
[],
|
|
97
104
|
Array<[string, Array<PackageSummary>]>
|
|
@@ -105,23 +112,24 @@ export interface Main {
|
|
|
105
112
|
'getTotalPackages' : ActorMethod<[], bigint>,
|
|
106
113
|
'getUser' : ActorMethod<[Principal], [] | [User__1]>,
|
|
107
114
|
'http_request' : ActorMethod<[Request], Response>,
|
|
108
|
-
'notifyInstall' : ActorMethod<[
|
|
115
|
+
'notifyInstall' : ActorMethod<[PackageName__1, PackageVersion__1], undefined>,
|
|
109
116
|
'notifyInstalls' : ActorMethod<
|
|
110
|
-
[Array<[
|
|
117
|
+
[Array<[PackageName__1, PackageVersion__1]>],
|
|
111
118
|
undefined
|
|
112
119
|
>,
|
|
120
|
+
'removeMaintainer' : ActorMethod<[PackageName__1, Principal], Result_3>,
|
|
121
|
+
'removeOwner' : ActorMethod<[PackageName__1, Principal], Result_3>,
|
|
113
122
|
'restore' : ActorMethod<[bigint], undefined>,
|
|
114
123
|
'search' : ActorMethod<
|
|
115
124
|
[Text, [] | [bigint], [] | [bigint]],
|
|
116
125
|
[Array<PackageSummary>, PageCount]
|
|
117
126
|
>,
|
|
118
|
-
'setUserProp' : ActorMethod<[string, string],
|
|
127
|
+
'setUserProp' : ActorMethod<[string, string], Result_3>,
|
|
119
128
|
'startFileUpload' : ActorMethod<
|
|
120
129
|
[PublishingId, Text, bigint, Uint8Array | number[]],
|
|
121
|
-
|
|
130
|
+
Result_2
|
|
122
131
|
>,
|
|
123
|
-
'startPublish' : ActorMethod<[PackageConfigV3_Publishing],
|
|
124
|
-
'transferOwnership' : ActorMethod<[PackageName, Principal], Result_1>,
|
|
132
|
+
'startPublish' : ActorMethod<[PackageConfigV3_Publishing], Result_1>,
|
|
125
133
|
'transformRequest' : ActorMethod<[HttpTransformArg], HttpResponse>,
|
|
126
134
|
'uploadBenchmarks' : ActorMethod<[PublishingId, Benchmarks], Result>,
|
|
127
135
|
'uploadFileChunk' : ActorMethod<
|
|
@@ -145,7 +153,7 @@ export interface PackageConfigV3 {
|
|
|
145
153
|
'scripts' : Array<Script>,
|
|
146
154
|
'baseDir' : string,
|
|
147
155
|
'documentation' : string,
|
|
148
|
-
'name' :
|
|
156
|
+
'name' : PackageName,
|
|
149
157
|
'homepage' : string,
|
|
150
158
|
'description' : string,
|
|
151
159
|
'version' : string,
|
|
@@ -164,7 +172,7 @@ export interface PackageConfigV3_Publishing {
|
|
|
164
172
|
'scripts' : Array<Script>,
|
|
165
173
|
'baseDir' : string,
|
|
166
174
|
'documentation' : string,
|
|
167
|
-
'name' :
|
|
175
|
+
'name' : PackageName,
|
|
168
176
|
'homepage' : string,
|
|
169
177
|
'description' : string,
|
|
170
178
|
'version' : string,
|
|
@@ -180,10 +188,13 @@ export interface PackageConfigV3_Publishing {
|
|
|
180
188
|
export interface PackageDetails {
|
|
181
189
|
'benchmarks' : Benchmarks__1,
|
|
182
190
|
'ownerInfo' : User,
|
|
191
|
+
'owners' : Array<User>,
|
|
192
|
+
'maintainers' : Array<User>,
|
|
183
193
|
'owner' : Principal,
|
|
184
194
|
'depAlias' : string,
|
|
185
195
|
'deps' : Array<PackageSummary__1>,
|
|
186
196
|
'quality' : PackageQuality,
|
|
197
|
+
'publisher' : User,
|
|
187
198
|
'testStats' : TestStats__1,
|
|
188
199
|
'highestVersion' : PackageVersion,
|
|
189
200
|
'downloadsTotal' : bigint,
|
|
@@ -222,9 +233,12 @@ export interface PackageQuality {
|
|
|
222
233
|
}
|
|
223
234
|
export interface PackageSummary {
|
|
224
235
|
'ownerInfo' : User,
|
|
236
|
+
'owners' : Array<User>,
|
|
237
|
+
'maintainers' : Array<User>,
|
|
225
238
|
'owner' : Principal,
|
|
226
239
|
'depAlias' : string,
|
|
227
240
|
'quality' : PackageQuality,
|
|
241
|
+
'publisher' : User,
|
|
228
242
|
'highestVersion' : PackageVersion,
|
|
229
243
|
'downloadsTotal' : bigint,
|
|
230
244
|
'downloadsInLast30Days' : bigint,
|
|
@@ -234,9 +248,12 @@ export interface PackageSummary {
|
|
|
234
248
|
}
|
|
235
249
|
export interface PackageSummaryWithChanges {
|
|
236
250
|
'ownerInfo' : User,
|
|
251
|
+
'owners' : Array<User>,
|
|
252
|
+
'maintainers' : Array<User>,
|
|
237
253
|
'owner' : Principal,
|
|
238
254
|
'depAlias' : string,
|
|
239
255
|
'quality' : PackageQuality,
|
|
256
|
+
'publisher' : User,
|
|
240
257
|
'highestVersion' : PackageVersion,
|
|
241
258
|
'downloadsTotal' : bigint,
|
|
242
259
|
'downloadsInLast30Days' : bigint,
|
|
@@ -247,9 +264,12 @@ export interface PackageSummaryWithChanges {
|
|
|
247
264
|
}
|
|
248
265
|
export interface PackageSummaryWithChanges__1 {
|
|
249
266
|
'ownerInfo' : User,
|
|
267
|
+
'owners' : Array<User>,
|
|
268
|
+
'maintainers' : Array<User>,
|
|
250
269
|
'owner' : Principal,
|
|
251
270
|
'depAlias' : string,
|
|
252
271
|
'quality' : PackageQuality,
|
|
272
|
+
'publisher' : User,
|
|
253
273
|
'highestVersion' : PackageVersion,
|
|
254
274
|
'downloadsTotal' : bigint,
|
|
255
275
|
'downloadsInLast30Days' : bigint,
|
|
@@ -260,9 +280,12 @@ export interface PackageSummaryWithChanges__1 {
|
|
|
260
280
|
}
|
|
261
281
|
export interface PackageSummary__1 {
|
|
262
282
|
'ownerInfo' : User,
|
|
283
|
+
'owners' : Array<User>,
|
|
284
|
+
'maintainers' : Array<User>,
|
|
263
285
|
'owner' : Principal,
|
|
264
286
|
'depAlias' : string,
|
|
265
287
|
'quality' : PackageQuality,
|
|
288
|
+
'publisher' : User,
|
|
266
289
|
'highestVersion' : PackageVersion,
|
|
267
290
|
'downloadsTotal' : bigint,
|
|
268
291
|
'downloadsInLast30Days' : bigint,
|
|
@@ -291,17 +314,17 @@ export interface Response {
|
|
|
291
314
|
}
|
|
292
315
|
export type Result = { 'ok' : null } |
|
|
293
316
|
{ 'err' : Err };
|
|
294
|
-
export type Result_1 = { 'ok' :
|
|
295
|
-
{ 'err' : string };
|
|
296
|
-
export type Result_2 = { 'ok' : PublishingId } |
|
|
317
|
+
export type Result_1 = { 'ok' : PublishingId } |
|
|
297
318
|
{ 'err' : Err };
|
|
298
|
-
export type
|
|
319
|
+
export type Result_2 = { 'ok' : FileId } |
|
|
299
320
|
{ 'err' : Err };
|
|
321
|
+
export type Result_3 = { 'ok' : null } |
|
|
322
|
+
{ 'err' : string };
|
|
300
323
|
export type Result_4 = { 'ok' : PackageDetails } |
|
|
301
324
|
{ 'err' : Err };
|
|
302
325
|
export type Result_5 = { 'ok' : PackageVersion__1 } |
|
|
303
326
|
{ 'err' : Err };
|
|
304
|
-
export type Result_6 = { 'ok' : Array<[
|
|
327
|
+
export type Result_6 = { 'ok' : Array<[PackageName__1, PackageVersion__1]> } |
|
|
305
328
|
{ 'err' : Err };
|
|
306
329
|
export type Result_7 = { 'ok' : Array<FileId> } |
|
|
307
330
|
{ 'err' : Err };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export const idlFactory = ({ IDL }) => {
|
|
2
|
+
const PackageName__1 = IDL.Text;
|
|
3
|
+
const Result_3 = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
|
|
2
4
|
const PublishingId = IDL.Text;
|
|
3
5
|
const Err = IDL.Text;
|
|
4
6
|
const Result = IDL.Variant({ 'ok' : IDL.Null, 'err' : Err });
|
|
5
7
|
const Text = IDL.Text;
|
|
6
|
-
const PackageName = IDL.Text;
|
|
7
8
|
const PackageVersion__1 = IDL.Text;
|
|
8
9
|
const PackageId = IDL.Text;
|
|
9
10
|
const Time = IDL.Int;
|
|
@@ -24,7 +25,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
24
25
|
'patch' : IDL.Null,
|
|
25
26
|
});
|
|
26
27
|
const Result_6 = IDL.Variant({
|
|
27
|
-
'ok' : IDL.Vec(IDL.Tuple(
|
|
28
|
+
'ok' : IDL.Vec(IDL.Tuple(PackageName__1, PackageVersion__1)),
|
|
28
29
|
'err' : Err,
|
|
29
30
|
});
|
|
30
31
|
const Result_5 = IDL.Variant({ 'ok' : PackageVersion__1, 'err' : Err });
|
|
@@ -57,9 +58,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
57
58
|
});
|
|
58
59
|
const PackageVersion = IDL.Text;
|
|
59
60
|
const Script = IDL.Record({ 'value' : IDL.Text, 'name' : IDL.Text });
|
|
60
|
-
const
|
|
61
|
+
const PackageName = IDL.Text;
|
|
61
62
|
const DependencyV2 = IDL.Record({
|
|
62
|
-
'name' :
|
|
63
|
+
'name' : PackageName,
|
|
63
64
|
'repo' : IDL.Text,
|
|
64
65
|
'version' : IDL.Text,
|
|
65
66
|
});
|
|
@@ -70,7 +71,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
70
71
|
'scripts' : IDL.Vec(Script),
|
|
71
72
|
'baseDir' : IDL.Text,
|
|
72
73
|
'documentation' : IDL.Text,
|
|
73
|
-
'name' :
|
|
74
|
+
'name' : PackageName,
|
|
74
75
|
'homepage' : IDL.Text,
|
|
75
76
|
'description' : IDL.Text,
|
|
76
77
|
'version' : IDL.Text,
|
|
@@ -90,9 +91,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
90
91
|
});
|
|
91
92
|
const PackageSummary = IDL.Record({
|
|
92
93
|
'ownerInfo' : User,
|
|
94
|
+
'owners' : IDL.Vec(User),
|
|
95
|
+
'maintainers' : IDL.Vec(User),
|
|
93
96
|
'owner' : IDL.Principal,
|
|
94
97
|
'depAlias' : IDL.Text,
|
|
95
98
|
'quality' : PackageQuality,
|
|
99
|
+
'publisher' : User,
|
|
96
100
|
'highestVersion' : PackageVersion,
|
|
97
101
|
'downloadsTotal' : IDL.Nat,
|
|
98
102
|
'downloadsInLast30Days' : IDL.Nat,
|
|
@@ -118,9 +122,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
118
122
|
const Benchmarks__1 = IDL.Vec(Benchmark);
|
|
119
123
|
const PackageSummary__1 = IDL.Record({
|
|
120
124
|
'ownerInfo' : User,
|
|
125
|
+
'owners' : IDL.Vec(User),
|
|
126
|
+
'maintainers' : IDL.Vec(User),
|
|
121
127
|
'owner' : IDL.Principal,
|
|
122
128
|
'depAlias' : IDL.Text,
|
|
123
129
|
'quality' : PackageQuality,
|
|
130
|
+
'publisher' : User,
|
|
124
131
|
'highestVersion' : PackageVersion,
|
|
125
132
|
'downloadsTotal' : IDL.Nat,
|
|
126
133
|
'downloadsInLast30Days' : IDL.Nat,
|
|
@@ -160,9 +167,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
160
167
|
});
|
|
161
168
|
const PackageSummaryWithChanges__1 = IDL.Record({
|
|
162
169
|
'ownerInfo' : User,
|
|
170
|
+
'owners' : IDL.Vec(User),
|
|
171
|
+
'maintainers' : IDL.Vec(User),
|
|
163
172
|
'owner' : IDL.Principal,
|
|
164
173
|
'depAlias' : IDL.Text,
|
|
165
174
|
'quality' : PackageQuality,
|
|
175
|
+
'publisher' : User,
|
|
166
176
|
'highestVersion' : PackageVersion,
|
|
167
177
|
'downloadsTotal' : IDL.Nat,
|
|
168
178
|
'downloadsInLast30Days' : IDL.Nat,
|
|
@@ -174,10 +184,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
174
184
|
const PackageDetails = IDL.Record({
|
|
175
185
|
'benchmarks' : Benchmarks__1,
|
|
176
186
|
'ownerInfo' : User,
|
|
187
|
+
'owners' : IDL.Vec(User),
|
|
188
|
+
'maintainers' : IDL.Vec(User),
|
|
177
189
|
'owner' : IDL.Principal,
|
|
178
190
|
'depAlias' : IDL.Text,
|
|
179
191
|
'deps' : IDL.Vec(PackageSummary__1),
|
|
180
192
|
'quality' : PackageQuality,
|
|
193
|
+
'publisher' : User,
|
|
181
194
|
'testStats' : TestStats__1,
|
|
182
195
|
'highestVersion' : PackageVersion,
|
|
183
196
|
'downloadsTotal' : IDL.Nat,
|
|
@@ -195,9 +208,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
195
208
|
const Result_4 = IDL.Variant({ 'ok' : PackageDetails, 'err' : Err });
|
|
196
209
|
const PackageSummaryWithChanges = IDL.Record({
|
|
197
210
|
'ownerInfo' : User,
|
|
211
|
+
'owners' : IDL.Vec(User),
|
|
212
|
+
'maintainers' : IDL.Vec(User),
|
|
198
213
|
'owner' : IDL.Principal,
|
|
199
214
|
'depAlias' : IDL.Text,
|
|
200
215
|
'quality' : PackageQuality,
|
|
216
|
+
'publisher' : User,
|
|
201
217
|
'highestVersion' : PackageVersion,
|
|
202
218
|
'downloadsTotal' : IDL.Nat,
|
|
203
219
|
'downloadsInLast30Days' : IDL.Nat,
|
|
@@ -256,15 +272,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
256
272
|
'status_code' : IDL.Nat16,
|
|
257
273
|
});
|
|
258
274
|
const PageCount = IDL.Nat;
|
|
259
|
-
const
|
|
260
|
-
const Result_3 = IDL.Variant({ 'ok' : FileId, 'err' : Err });
|
|
275
|
+
const Result_2 = IDL.Variant({ 'ok' : FileId, 'err' : Err });
|
|
261
276
|
const PackageConfigV3_Publishing = IDL.Record({
|
|
262
277
|
'dfx' : IDL.Text,
|
|
263
278
|
'moc' : IDL.Text,
|
|
264
279
|
'scripts' : IDL.Vec(Script),
|
|
265
280
|
'baseDir' : IDL.Text,
|
|
266
281
|
'documentation' : IDL.Text,
|
|
267
|
-
'name' :
|
|
282
|
+
'name' : PackageName,
|
|
268
283
|
'homepage' : IDL.Text,
|
|
269
284
|
'description' : IDL.Text,
|
|
270
285
|
'version' : IDL.Text,
|
|
@@ -277,7 +292,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
277
292
|
'license' : IDL.Text,
|
|
278
293
|
'readme' : IDL.Text,
|
|
279
294
|
});
|
|
280
|
-
const
|
|
295
|
+
const Result_1 = IDL.Variant({ 'ok' : PublishingId, 'err' : Err });
|
|
281
296
|
const HttpHeader = IDL.Record({ 'value' : IDL.Text, 'name' : IDL.Text });
|
|
282
297
|
const HttpResponse = IDL.Record({
|
|
283
298
|
'status' : IDL.Nat,
|
|
@@ -294,6 +309,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
294
309
|
'passed' : IDL.Nat,
|
|
295
310
|
});
|
|
296
311
|
const Main = IDL.Service({
|
|
312
|
+
'addMaintainer' : IDL.Func([PackageName__1, IDL.Principal], [Result_3], []),
|
|
313
|
+
'addOwner' : IDL.Func([PackageName__1, IDL.Principal], [Result_3], []),
|
|
297
314
|
'backup' : IDL.Func([], [], []),
|
|
298
315
|
'computeHashesForExistingFiles' : IDL.Func([], [], []),
|
|
299
316
|
'finishPublish' : IDL.Func([PublishingId], [Result], []),
|
|
@@ -301,7 +318,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
301
318
|
'getBackupCanisterId' : IDL.Func([], [IDL.Principal], ['query']),
|
|
302
319
|
'getDefaultPackages' : IDL.Func(
|
|
303
320
|
[IDL.Text],
|
|
304
|
-
[IDL.Vec(IDL.Tuple(
|
|
321
|
+
[IDL.Vec(IDL.Tuple(PackageName__1, PackageVersion__1))],
|
|
305
322
|
['query'],
|
|
306
323
|
),
|
|
307
324
|
'getDownloadTrendByPackageId' : IDL.Func(
|
|
@@ -310,12 +327,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
310
327
|
['query'],
|
|
311
328
|
),
|
|
312
329
|
'getDownloadTrendByPackageName' : IDL.Func(
|
|
313
|
-
[
|
|
330
|
+
[PackageName__1],
|
|
314
331
|
[IDL.Vec(DownloadsSnapshot__1)],
|
|
315
332
|
['query'],
|
|
316
333
|
),
|
|
317
334
|
'getFileHashes' : IDL.Func(
|
|
318
|
-
[
|
|
335
|
+
[PackageName__1, PackageVersion__1],
|
|
319
336
|
[Result_8],
|
|
320
337
|
[],
|
|
321
338
|
),
|
|
@@ -329,21 +346,21 @@ export const idlFactory = ({ IDL }) => {
|
|
|
329
346
|
[],
|
|
330
347
|
),
|
|
331
348
|
'getFileHashesQuery' : IDL.Func(
|
|
332
|
-
[
|
|
349
|
+
[PackageName__1, PackageVersion__1],
|
|
333
350
|
[Result_8],
|
|
334
351
|
['query'],
|
|
335
352
|
),
|
|
336
353
|
'getFileIds' : IDL.Func(
|
|
337
|
-
[
|
|
354
|
+
[PackageName__1, PackageVersion__1],
|
|
338
355
|
[Result_7],
|
|
339
356
|
['query'],
|
|
340
357
|
),
|
|
341
358
|
'getHighestSemverBatch' : IDL.Func(
|
|
342
|
-
[IDL.Vec(IDL.Tuple(
|
|
359
|
+
[IDL.Vec(IDL.Tuple(PackageName__1, PackageVersion__1, SemverPart))],
|
|
343
360
|
[Result_6],
|
|
344
361
|
['query'],
|
|
345
362
|
),
|
|
346
|
-
'getHighestVersion' : IDL.Func([
|
|
363
|
+
'getHighestVersion' : IDL.Func([PackageName__1], [Result_5], ['query']),
|
|
347
364
|
'getMostDownloadedPackages' : IDL.Func(
|
|
348
365
|
[],
|
|
349
366
|
[IDL.Vec(PackageSummary)],
|
|
@@ -356,10 +373,20 @@ export const idlFactory = ({ IDL }) => {
|
|
|
356
373
|
),
|
|
357
374
|
'getNewPackages' : IDL.Func([], [IDL.Vec(PackageSummary)], ['query']),
|
|
358
375
|
'getPackageDetails' : IDL.Func(
|
|
359
|
-
[
|
|
376
|
+
[PackageName__1, PackageVersion__1],
|
|
360
377
|
[Result_4],
|
|
361
378
|
['query'],
|
|
362
379
|
),
|
|
380
|
+
'getPackageMaintainers' : IDL.Func(
|
|
381
|
+
[PackageName__1],
|
|
382
|
+
[IDL.Vec(IDL.Principal)],
|
|
383
|
+
['query'],
|
|
384
|
+
),
|
|
385
|
+
'getPackageOwners' : IDL.Func(
|
|
386
|
+
[PackageName__1],
|
|
387
|
+
[IDL.Vec(IDL.Principal)],
|
|
388
|
+
['query'],
|
|
389
|
+
),
|
|
363
390
|
'getPackagesByCategory' : IDL.Func(
|
|
364
391
|
[],
|
|
365
392
|
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(PackageSummary)))],
|
|
@@ -380,33 +407,34 @@ export const idlFactory = ({ IDL }) => {
|
|
|
380
407
|
'getUser' : IDL.Func([IDL.Principal], [IDL.Opt(User__1)], ['query']),
|
|
381
408
|
'http_request' : IDL.Func([Request], [Response], ['query']),
|
|
382
409
|
'notifyInstall' : IDL.Func(
|
|
383
|
-
[
|
|
410
|
+
[PackageName__1, PackageVersion__1],
|
|
384
411
|
[],
|
|
385
412
|
['oneway'],
|
|
386
413
|
),
|
|
387
414
|
'notifyInstalls' : IDL.Func(
|
|
388
|
-
[IDL.Vec(IDL.Tuple(
|
|
415
|
+
[IDL.Vec(IDL.Tuple(PackageName__1, PackageVersion__1))],
|
|
389
416
|
[],
|
|
390
417
|
['oneway'],
|
|
391
418
|
),
|
|
419
|
+
'removeMaintainer' : IDL.Func(
|
|
420
|
+
[PackageName__1, IDL.Principal],
|
|
421
|
+
[Result_3],
|
|
422
|
+
[],
|
|
423
|
+
),
|
|
424
|
+
'removeOwner' : IDL.Func([PackageName__1, IDL.Principal], [Result_3], []),
|
|
392
425
|
'restore' : IDL.Func([IDL.Nat], [], []),
|
|
393
426
|
'search' : IDL.Func(
|
|
394
427
|
[Text, IDL.Opt(IDL.Nat), IDL.Opt(IDL.Nat)],
|
|
395
428
|
[IDL.Vec(PackageSummary), PageCount],
|
|
396
429
|
['query'],
|
|
397
430
|
),
|
|
398
|
-
'setUserProp' : IDL.Func([IDL.Text, IDL.Text], [
|
|
431
|
+
'setUserProp' : IDL.Func([IDL.Text, IDL.Text], [Result_3], []),
|
|
399
432
|
'startFileUpload' : IDL.Func(
|
|
400
433
|
[PublishingId, Text, IDL.Nat, IDL.Vec(IDL.Nat8)],
|
|
401
|
-
[
|
|
402
|
-
[],
|
|
403
|
-
),
|
|
404
|
-
'startPublish' : IDL.Func([PackageConfigV3_Publishing], [Result_2], []),
|
|
405
|
-
'transferOwnership' : IDL.Func(
|
|
406
|
-
[PackageName, IDL.Principal],
|
|
407
|
-
[Result_1],
|
|
434
|
+
[Result_2],
|
|
408
435
|
[],
|
|
409
436
|
),
|
|
437
|
+
'startPublish' : IDL.Func([PackageConfigV3_Publishing], [Result_1], []),
|
|
410
438
|
'transformRequest' : IDL.Func(
|
|
411
439
|
[HttpTransformArg],
|
|
412
440
|
[HttpResponse],
|