Browse Source

types: update missing types in data_directory

Mokhtar Naamani 4 years ago
parent
commit
684b637c21

File diff suppressed because it is too large
+ 1 - 1
types/augment-codec/all.ts


+ 4 - 0
types/augment-codec/augment-api-query.ts

@@ -275,6 +275,10 @@ declare module '@polkadot/api/types/storage' {
        * Upper bound for the Quota size limit.
        **/
       quotaSizeLimitUpperBound: AugmentedQuery<ApiType, () => Observable<u64>>;
+      /**
+       * If all new uploads blocked
+       **/
+      uploadingBlocked: AugmentedQuery<ApiType, () => Observable<bool>>;
     };
     dataObjectStorageRegistry: {
       /**

+ 4 - 0
types/augment-codec/augment-api-tx.ts

@@ -309,6 +309,10 @@ declare module '@polkadot/api/types/submittable' {
        * Removes the content id from the list of known content ids. Requires root privileges.
        **/
       removeKnownContentId: AugmentedSubmittable<(contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
+      /**
+       * Locks / unlocks content uploading
+       **/
+      updateContentUploadingStatus: AugmentedSubmittable<(isBlocked: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
       /**
        * Updates storage object owner quota objects limit. Requires leader privileges.
        **/

File diff suppressed because it is too large
+ 0 - 0
types/augment-codec/augment-types.ts


+ 2 - 0
types/augment/all/defs.json

@@ -545,6 +545,8 @@
         "size_used": "u64",
         "objects_used": "u64"
     },
+    "QuotaLimit": "u64",
+    "UploadingStatus": "bool",
     "ProposalId": "u32",
     "ProposalStatus": {
         "_enum": {

+ 6 - 0
types/augment/all/types.ts

@@ -926,6 +926,9 @@ export interface Quota extends Struct {
   readonly objects_used: u64;
 }
 
+/** @name QuotaLimit */
+export interface QuotaLimit extends u64 {}
+
 /** @name RationaleText */
 export interface RationaleText extends Bytes {}
 
@@ -1218,6 +1221,9 @@ export interface UnstakingApplicationStage extends Struct {
 /** @name UpdatePropertyValuesOperation */
 export interface UpdatePropertyValuesOperation extends Null {}
 
+/** @name UploadingStatus */
+export interface UploadingStatus extends bool {}
+
 /** @name Url */
 export interface Url extends Text {}
 

+ 4 - 0
types/augment/augment-api-query.ts

@@ -275,6 +275,10 @@ declare module '@polkadot/api/types/storage' {
        * Upper bound for the Quota size limit.
        **/
       quotaSizeLimitUpperBound: AugmentedQuery<ApiType, () => Observable<u64>>;
+      /**
+       * If all new uploads blocked
+       **/
+      uploadingBlocked: AugmentedQuery<ApiType, () => Observable<bool>>;
     };
     dataObjectStorageRegistry: {
       /**

+ 4 - 0
types/augment/augment-api-tx.ts

@@ -309,6 +309,10 @@ declare module '@polkadot/api/types/submittable' {
        * Removes the content id from the list of known content ids. Requires root privileges.
        **/
       removeKnownContentId: AugmentedSubmittable<(contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
+      /**
+       * Locks / unlocks content uploading
+       **/
+      updateContentUploadingStatus: AugmentedSubmittable<(isBlocked: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
       /**
        * Updates storage object owner quota objects limit. Requires leader privileges.
        **/

File diff suppressed because it is too large
+ 0 - 0
types/augment/augment-types.ts


+ 5 - 0
types/src/storage.ts

@@ -109,6 +109,9 @@ export class Quota extends JoyStructDecorated({
   objects_used: u64,
 }) {}
 
+export class QuotaLimit extends u64 {}
+export class UploadingStatus extends bool {}
+
 export const mediaTypes: RegistryTypes = {
   ContentId,
   LiaisonJudgement,
@@ -124,6 +127,8 @@ export const mediaTypes: RegistryTypes = {
   WorkingGroupType,
   Content,
   Quota,
+  QuotaLimit,
+  UploadingStatus,
 }
 
 export default mediaTypes

Some files were not shown because too many files changed in this diff