Skip to content

Commit

Permalink
fixes from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Oct 3, 2023
1 parent 63a6d54 commit ba87ee9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
27 changes: 8 additions & 19 deletions examples/audio_recorder/src/index.did
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
type rec_2 = record {id:principal; username:text; recordingIds:vec principal; createdAt:nat64};
type rec_3 = record {id:principal; username:text; recordingIds:vec principal; createdAt:nat64};
type rec_4 = record {id:principal; username:text; recordingIds:vec principal; createdAt:nat64};
type rec_5 = record {id:principal; username:text; recordingIds:vec principal; createdAt:nat64};
type rec_6 = variant {RecordingDoesNotExist:principal; UserDoesNotExist:principal};
type rec_7 = record {id:principal; audio:vec nat8; userId:principal; name:text; createdAt:nat64};
type rec_8 = variant {RecordingDoesNotExist:principal; UserDoesNotExist:principal};
type rec_9 = record {id:principal; audio:vec nat8; userId:principal; name:text; createdAt:nat64};
type rec_10 = record {id:principal; audio:vec nat8; userId:principal; name:text; createdAt:nat64};
type rec_11 = record {id:principal; audio:vec nat8; userId:principal; name:text; createdAt:nat64};
type rec_12 = variant {RecordingDoesNotExist:principal; UserDoesNotExist:principal};
service: () -> {
createUser: (text) -> (rec_2);
readUsers: () -> (vec rec_3) query;
readUserById: (principal) -> (opt rec_4) query;
deleteUser: (principal) -> (variant {Ok:rec_5; Err:rec_6});
createRecording: (vec nat8, text, principal) -> (variant {Ok:rec_7; Err:rec_8});
readRecordings: () -> (vec rec_9) query;
readRecordingById: (principal) -> (opt rec_10) query;
deleteRecording: (principal) -> (variant {Ok:rec_11; Err:rec_12});
createRecording: (vec nat8, text, principal) -> (variant {Ok:record {id:principal; audio:vec nat8; userId:principal; name:text; createdAt:nat64}; Err:variant {RecordingDoesNotExist:principal; UserDoesNotExist:principal}});
createUser: (text) -> (record {id:principal; username:text; recordingIds:vec principal; createdAt:nat64});
deleteRecording: (principal) -> (variant {Ok:record {id:principal; audio:vec nat8; userId:principal; name:text; createdAt:nat64}; Err:variant {RecordingDoesNotExist:principal; UserDoesNotExist:principal}});
deleteUser: (principal) -> (variant {Ok:record {id:principal; username:text; recordingIds:vec principal; createdAt:nat64}; Err:variant {RecordingDoesNotExist:principal; UserDoesNotExist:principal}});
readRecordingById: (principal) -> (opt record {id:principal; audio:vec nat8; userId:principal; name:text; createdAt:nat64}) query;
readRecordings: () -> (vec record {id:principal; audio:vec nat8; userId:principal; name:text; createdAt:nat64}) query;
readUserById: (principal) -> (opt record {id:principal; username:text; recordingIds:vec principal; createdAt:nat64}) query;
readUsers: () -> (vec record {id:principal; username:text; recordingIds:vec principal; createdAt:nat64}) query;
}
1 change: 1 addition & 0 deletions src/lib/candid/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { Principal } from './types/reference';
export * from './types/constructed';
export * from './types/primitive';
export * from './types/reference';
export * from './recursive';

export type TypeMapping<T, RecursionLevel = 0> = RecursionLevel extends 10
? T
Expand Down
1 change: 1 addition & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export * from './candid';
export * from './canister_methods';
export * from './ic';
export * from './stable_b_tree_map';
export * from './system_types';
export { IDL } from '@dfinity/candid';

0 comments on commit ba87ee9

Please sign in to comment.