@junobuild/admin 0.0.17 → 0.0.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.
@@ -21,10 +21,6 @@ export interface AssetNoContent {
21
21
  headers: Array<[string, string]>;
22
22
  created_at: bigint;
23
23
  }
24
- export interface Chunk {
25
- content: Uint8Array | number[];
26
- batch_id: bigint;
27
- }
28
24
  export interface CommitBatch {
29
25
  batch_id: bigint;
30
26
  headers: Array<[string, string]>;
@@ -166,12 +162,17 @@ export type StreamingStrategy = {
166
162
  };
167
163
  };
168
164
  export interface UploadChunk {
165
+ content: Uint8Array | number[];
166
+ batch_id: bigint;
167
+ order_id: [] | [bigint];
168
+ }
169
+ export interface UploadChunkResult {
169
170
  chunk_id: bigint;
170
171
  }
171
172
  export interface _SERVICE {
172
173
  commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
173
174
  del_asset: ActorMethod<[string, string], undefined>;
174
- del_assets: ActorMethod<[[] | [string]], undefined>;
175
+ del_assets: ActorMethod<[string], undefined>;
175
176
  del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
176
177
  del_custom_domain: ActorMethod<[string], undefined>;
177
178
  del_doc: ActorMethod<[string, string, DelDoc], undefined>;
@@ -184,7 +185,7 @@ export interface _SERVICE {
184
185
  StreamingCallbackHttpResponse
185
186
  >;
186
187
  init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
187
- list_assets: ActorMethod<[[] | [string], ListParams], ListResults>;
188
+ list_assets: ActorMethod<[string, ListParams], ListResults>;
188
189
  list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
189
190
  list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
190
191
  list_docs: ActorMethod<[string, ListParams], ListResults_1>;
@@ -194,6 +195,6 @@ export interface _SERVICE {
194
195
  set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
195
196
  set_doc: ActorMethod<[string, string, SetDoc], Doc>;
196
197
  set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
197
- upload_asset_chunk: ActorMethod<[Chunk], UploadChunk>;
198
+ upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
198
199
  version: ActorMethod<[], string>;
199
200
  }
@@ -163,15 +163,16 @@ export const idlFactory = ({IDL}) => {
163
163
  read: Permission,
164
164
  write: Permission
165
165
  });
166
- const Chunk = IDL.Record({
166
+ const UploadChunk = IDL.Record({
167
167
  content: IDL.Vec(IDL.Nat8),
168
- batch_id: IDL.Nat
168
+ batch_id: IDL.Nat,
169
+ order_id: IDL.Opt(IDL.Nat)
169
170
  });
170
- const UploadChunk = IDL.Record({chunk_id: IDL.Nat});
171
+ const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
171
172
  return IDL.Service({
172
173
  commit_asset_upload: IDL.Func([CommitBatch], [], []),
173
174
  del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
174
- del_assets: IDL.Func([IDL.Opt(IDL.Text)], [], []),
175
+ del_assets: IDL.Func([IDL.Text], [], []),
175
176
  del_controllers: IDL.Func(
176
177
  [DeleteControllersArgs],
177
178
  [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
@@ -189,7 +190,7 @@ export const idlFactory = ({IDL}) => {
189
190
  ['query']
190
191
  ),
191
192
  init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
192
- list_assets: IDL.Func([IDL.Opt(IDL.Text), ListParams], [ListResults], ['query']),
193
+ list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
193
194
  list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
194
195
  list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
195
196
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
@@ -203,7 +204,7 @@ export const idlFactory = ({IDL}) => {
203
204
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
204
205
  set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
205
206
  set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
206
- upload_asset_chunk: IDL.Func([Chunk], [UploadChunk], []),
207
+ upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
207
208
  version: IDL.Func([], [IDL.Text], ['query'])
208
209
  });
209
210
  };
@@ -163,15 +163,16 @@ export const idlFactory = ({IDL}) => {
163
163
  read: Permission,
164
164
  write: Permission
165
165
  });
166
- const Chunk = IDL.Record({
166
+ const UploadChunk = IDL.Record({
167
167
  content: IDL.Vec(IDL.Nat8),
168
- batch_id: IDL.Nat
168
+ batch_id: IDL.Nat,
169
+ order_id: IDL.Opt(IDL.Nat)
169
170
  });
170
- const UploadChunk = IDL.Record({chunk_id: IDL.Nat});
171
+ const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
171
172
  return IDL.Service({
172
173
  commit_asset_upload: IDL.Func([CommitBatch], [], []),
173
174
  del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
174
- del_assets: IDL.Func([IDL.Opt(IDL.Text)], [], []),
175
+ del_assets: IDL.Func([IDL.Text], [], []),
175
176
  del_controllers: IDL.Func(
176
177
  [DeleteControllersArgs],
177
178
  [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
@@ -189,7 +190,7 @@ export const idlFactory = ({IDL}) => {
189
190
  ['query']
190
191
  ),
191
192
  init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
192
- list_assets: IDL.Func([IDL.Opt(IDL.Text), ListParams], [ListResults], ['query']),
193
+ list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
193
194
  list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
194
195
  list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
195
196
  list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
@@ -203,7 +204,7 @@ export const idlFactory = ({IDL}) => {
203
204
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
204
205
  set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
205
206
  set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
206
- upload_asset_chunk: IDL.Func([Chunk], [UploadChunk], []),
207
+ upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
207
208
  version: IDL.Func([], [IDL.Text], ['query'])
208
209
  });
209
210
  };
@@ -0,0 +1,2 @@
1
+ import{p as a,q as b}from"./chunk-ZTILA2YH.js";export{b as encodePath,a as request};
2
+ //# sourceMappingURL=canisterStatus-MAYNIE3Q.js.map