XYO Platform SDK - v3.10.6
    Preparing search index...

    Class ManifestWrapperEx<TManifest, TParams>

    Provides functionality that can be performed on a PackageManifest

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    • Type Parameters

      • TManifest extends
            | void
            | {
                description?: string;
                modules?: {
                    [key: string]: {
                        config: {
                            accountPath?: string;
                            features?: string[];
                            labels?: { [key: string]: undefined
                            | string };
                            language?: string;
                            name: string;
                            os?: string;
                            schema: string;
                        };
                        description?: string;
                        lazyStart?: boolean;
                        status?: {
                            address: Lowercase<string>;
                            children?: { [key: Lowercase<string>]: null | string };
                        };
                    };
                };
                nodes: {
                    config: {
                        accountPath?: string;
                        features?: string[];
                        labels?: { [key: string]: undefined
                        | string };
                        language?: string;
                        name: string;
                        os?: string;
                        schema: string;
                    };
                    description?: string;
                    lazyStart?: boolean;
                    modules?: {
                        private?: (
                            | string
                            | {
                                config: {
                                    accountPath?: ...;
                                    features?: ...;
                                    labels?: ...;
                                    language?: ...;
                                    name: ...;
                                    os?: ...;
                                    schema: ...;
                                };
                                description?: (...)
                                | (...);
                                lazyStart?: (...) | (...) | (...);
                                status?: (...) | (...);
                            }
                        )[];
                        public?: (
                            | string
                            | {
                                config: {
                                    accountPath?: ...;
                                    features?: ...;
                                    labels?: ...;
                                    language?: ...;
                                    name: ...;
                                    os?: ...;
                                    schema: ...;
                                };
                                description?: (...)
                                | (...);
                                lazyStart?: (...) | (...) | (...);
                                status?: (...) | (...);
                            }
                        )[];
                    };
                    status?: {
                        address: Lowercase<string>;
                        children?: { [key: Lowercase<string>]: null | string };
                    };
                }[];
                schema: string;
            }
      • TParams extends ManifestWrapperExParams = ManifestWrapperExParams

      Parameters

      • payload: TManifest extends {
            description?: string;
            modules?: {
                [key: string]: {
                    config: {
                        accountPath?: string;
                        features?: string[];
                        labels?: { [key: string]: undefined
                        | string };
                        language?: string;
                        name: string;
                        os?: string;
                        schema: string;
                    };
                    description?: string;
                    lazyStart?: boolean;
                    status?: {
                        address: Lowercase<string>;
                        children?: { [key: Lowercase<string>]: null | string };
                    };
                };
            };
            nodes: {
                config: {
                    accountPath?: string;
                    features?: string[];
                    labels?: { [key: string]: undefined
                    | string };
                    language?: string;
                    name: string;
                    os?: string;
                    schema: string;
                };
                description?: string;
                lazyStart?: boolean;
                modules?: {
                    private?: (
                        | string
                        | {
                            config: {
                                accountPath?: ...;
                                features?: ...;
                                labels?: ...;
                                language?: ...;
                                name: ...;
                                os?: ...;
                                schema: ...;
                            };
                            description?: (...)
                            | (...);
                            lazyStart?: (...) | (...) | (...);
                            status?: (...) | (...);
                        }
                    )[];
                    public?: (
                        | string
                        | {
                            config: {
                                accountPath?: ...;
                                features?: ...;
                                labels?: ...;
                                language?: ...;
                                name: ...;
                                os?: ...;
                                schema: ...;
                            };
                            description?: (...)
                            | (...);
                            lazyStart?: (...) | (...) | (...);
                            status?: (...) | (...);
                        }
                    )[];
                };
                status?: {
                    address: Lowercase<string>;
                    children?: { [key: Lowercase<string>]: null | string };
                };
            }[];
            schema: string;
        }
            ? TManifest<TManifest>
            : {
                description?: string;
                modules?: {
                    [key: string]: {
                        config: {
                            accountPath?: string;
                            features?: string[];
                            labels?: { [key: string]: undefined | string };
                            language?: string;
                            name: string;
                            os?: string;
                            schema: string;
                        };
                        description?: string;
                        lazyStart?: boolean;
                        status?: {
                            address: Lowercase<string>;
                            children?: { [key: Lowercase<string>]: null | string };
                        };
                    };
                };
                nodes: {
                    config: {
                        accountPath?: string;
                        features?: string[];
                        labels?: { [key: string]: undefined
                        | string };
                        language?: string;
                        name: string;
                        os?: string;
                        schema: string;
                    };
                    description?: string;
                    lazyStart?: boolean;
                    modules?: {
                        private?: (
                            | string
                            | {
                                config: {
                                    accountPath?: ...;
                                    features?: ...;
                                    labels?: ...;
                                    language?: ...;
                                    name: ...;
                                    os?: ...;
                                    schema: ...;
                                };
                                description?: (...)
                                | (...);
                                lazyStart?: (...) | (...) | (...);
                                status?: (...) | (...);
                            }
                        )[];
                        public?: (
                            | string
                            | {
                                config: {
                                    accountPath?: ...;
                                    features?: ...;
                                    labels?: ...;
                                    language?: ...;
                                    name: ...;
                                    os?: ...;
                                    schema: ...;
                                };
                                description?: (...)
                                | (...);
                                lazyStart?: (...) | (...) | (...);
                                status?: (...) | (...);
                            }
                        )[];
                    };
                    status?: {
                        address: Lowercase<string>;
                        children?: { [key: Lowercase<string>]: null | string };
                    };
                }[];
                schema: string;
            }
      • params: TParams

      Returns ManifestWrapperEx<TManifest, TParams>

    Properties

    params: TParams
    payload: TManifest extends {
        description?: string;
        modules?: {
            [key: string]: {
                config: {
                    accountPath?: string;
                    features?: string[];
                    labels?: { [key: string]: undefined
                    | string };
                    language?: string;
                    name: string;
                    os?: string;
                    schema: string;
                };
                description?: string;
                lazyStart?: boolean;
                status?: {
                    address: Lowercase<string>;
                    children?: { [key: Lowercase<string>]: null | string };
                };
            };
        };
        nodes: {
            config: {
                accountPath?: string;
                features?: string[];
                labels?: { [key: string]: undefined
                | string };
                language?: string;
                name: string;
                os?: string;
                schema: string;
            };
            description?: string;
            lazyStart?: boolean;
            modules?: {
                private?: (
                    | string
                    | {
                        config: {
                            accountPath?: ...;
                            features?: ...;
                            labels?: ...;
                            language?: ...;
                            name: ...;
                            os?: ...;
                            schema: ...;
                        };
                        description?: (...)
                        | (...);
                        lazyStart?: (...) | (...) | (...);
                        status?: (...) | (...);
                    }
                )[];
                public?: (
                    | string
                    | {
                        config: {
                            accountPath?: ...;
                            features?: ...;
                            labels?: ...;
                            language?: ...;
                            name: ...;
                            os?: ...;
                            schema: ...;
                        };
                        description?: (...)
                        | (...);
                        lazyStart?: (...) | (...) | (...);
                        status?: (...) | (...);
                    }
                )[];
            };
            status?: {
                address: Lowercase<string>;
                children?: { [key: Lowercase<string>]: null | string };
            };
        }[];
        schema: string;
    }
        ? TManifest<TManifest>
        : {
            description?: string;
            modules?: {
                [key: string]: {
                    config: {
                        accountPath?: string;
                        features?: string[];
                        labels?: { [key: string]: undefined | string };
                        language?: string;
                        name: string;
                        os?: string;
                        schema: string;
                    };
                    description?: string;
                    lazyStart?: boolean;
                    status?: {
                        address: Lowercase<string>;
                        children?: { [key: Lowercase<string>]: null | string };
                    };
                };
            };
            nodes: {
                config: {
                    accountPath?: string;
                    features?: string[];
                    labels?: { [key: string]: undefined
                    | string };
                    language?: string;
                    name: string;
                    os?: string;
                    schema: string;
                };
                description?: string;
                lazyStart?: boolean;
                modules?: {
                    private?: (
                        | string
                        | {
                            config: {
                                accountPath?: ...;
                                features?: ...;
                                labels?: ...;
                                language?: ...;
                                name: ...;
                                os?: ...;
                                schema: ...;
                            };
                            description?: (...)
                            | (...);
                            lazyStart?: (...) | (...) | (...);
                            status?: (...) | (...);
                        }
                    )[];
                    public?: (
                        | string
                        | {
                            config: {
                                accountPath?: ...;
                                features?: ...;
                                labels?: ...;
                                language?: ...;
                                name: ...;
                                os?: ...;
                                schema: ...;
                            };
                            description?: (...)
                            | (...);
                            lazyStart?: (...) | (...) | (...);
                            status?: (...) | (...);
                        }
                    )[];
                };
                status?: {
                    address: Lowercase<string>;
                    children?: { [key: Lowercase<string>]: null | string };
                };
            }[];
            schema: string;
        }
    loaderFactory: null | PayloadLoaderFactory

    Accessors

    Methods

    • Returns Promise<Lowercase<string>>

    • Returns Promise<Error[]>

    • Returns Promise<boolean>

    • Parameters

      • index: number

      Returns Promise<
          MemoryNode<
              BaseParamsFields & {
                  account?: AccountInstance
                  | "random";
                  additionalSigners?: AccountInstance[];
                  addToResolvers?: boolean;
                  allowNameResolution?: boolean;
                  config: AnyConfigSchema<NodeConfig>;
                  ephemeralQueryAccountEnabled?: boolean;
                  moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                  privateChildren?: ModuleInstance<
                      BaseParamsFields & {
                          account?: AccountInstance
                          | "random";
                          additionalSigners?: (...)[];
                          addToResolvers?: boolean;
                          allowNameResolution?: boolean;
                          config: AnyConfigSchema<ModuleConfig>;
                          ephemeralQueryAccountEnabled?: boolean;
                          moduleIdentifierTransformers?: (...)[];
                          privateChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                          publicChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                      },
                      ModuleEventData<object>,
                  >[];
                  publicChildren?: ModuleInstance<
                      BaseParamsFields & {
                          account?: AccountInstance
                          | "random";
                          additionalSigners?: (...)[];
                          addToResolvers?: boolean;
                          allowNameResolution?: boolean;
                          config: AnyConfigSchema<ModuleConfig>;
                          ephemeralQueryAccountEnabled?: boolean;
                          moduleIdentifierTransformers?: (...)[];
                          privateChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                          publicChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                      },
                      ModuleEventData<object>,
                  >[];
              },
              NodeModuleEventData,
          >,
      >

    • Parameters

      Returns Promise<
          MemoryNode<
              BaseParamsFields & {
                  account?: AccountInstance
                  | "random";
                  additionalSigners?: AccountInstance[];
                  addToResolvers?: boolean;
                  allowNameResolution?: boolean;
                  config: AnyConfigSchema<NodeConfig>;
                  ephemeralQueryAccountEnabled?: boolean;
                  moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                  privateChildren?: ModuleInstance<
                      BaseParamsFields & {
                          account?: AccountInstance
                          | "random";
                          additionalSigners?: (...)[];
                          addToResolvers?: boolean;
                          allowNameResolution?: boolean;
                          config: AnyConfigSchema<ModuleConfig>;
                          ephemeralQueryAccountEnabled?: boolean;
                          moduleIdentifierTransformers?: (...)[];
                          privateChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                          publicChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                      },
                      ModuleEventData<object>,
                  >[];
                  publicChildren?: ModuleInstance<
                      BaseParamsFields & {
                          account?: AccountInstance
                          | "random";
                          additionalSigners?: (...)[];
                          addToResolvers?: boolean;
                          allowNameResolution?: boolean;
                          config: AnyConfigSchema<ModuleConfig>;
                          ephemeralQueryAccountEnabled?: boolean;
                          moduleIdentifierTransformers?: (...)[];
                          privateChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                          publicChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                      },
                      ModuleEventData<object>,
                  >[];
              },
              NodeModuleEventData,
          >,
      >

    • Load the nodes that are defined in the wrapped manifest and optionally attach them to a node

      Parameters

      • Optionalnode: MemoryNode<
            BaseParamsFields & {
                account?: AccountInstance
                | "random";
                additionalSigners?: AccountInstance[];
                addToResolvers?: boolean;
                allowNameResolution?: boolean;
                config: AnyConfigSchema<NodeConfig>;
                ephemeralQueryAccountEnabled?: boolean;
                moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                privateChildren?: ModuleInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: (...)[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema<ModuleConfig>;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: (...)[];
                        privateChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                        publicChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                    },
                    ModuleEventData<object>,
                >[];
                publicChildren?: ModuleInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: (...)[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema<ModuleConfig>;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: (...)[];
                        privateChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                        publicChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                    },
                    ModuleEventData<object>,
                >[];
            },
            NodeModuleEventData,
        >

      Returns Promise<
          MemoryNode<
              BaseParamsFields & {
                  account?: AccountInstance
                  | "random";
                  additionalSigners?: AccountInstance[];
                  addToResolvers?: boolean;
                  allowNameResolution?: boolean;
                  config: AnyConfigSchema<NodeConfig>;
                  ephemeralQueryAccountEnabled?: boolean;
                  moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                  privateChildren?: ModuleInstance<
                      BaseParamsFields & {
                          account?: (...)
                          | (...)
                          | (...);
                          additionalSigners?: (...) | (...);
                          addToResolvers?: (...) | (...) | (...);
                          allowNameResolution?: (...) | (...) | (...);
                          config: AnyConfigSchema<(...)>;
                          ephemeralQueryAccountEnabled?: (...) | (...) | (...);
                          moduleIdentifierTransformers?: (...) | (...);
                          privateChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                          publicChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                      },
                      ModuleEventData<object>,
                  >[];
                  publicChildren?: ModuleInstance<
                      BaseParamsFields & {
                          account?: (...)
                          | (...)
                          | (...);
                          additionalSigners?: (...) | (...);
                          addToResolvers?: (...) | (...) | (...);
                          allowNameResolution?: (...) | (...) | (...);
                          config: AnyConfigSchema<(...)>;
                          ephemeralQueryAccountEnabled?: (...) | (...) | (...);
                          moduleIdentifierTransformers?: (...) | (...);
                          privateChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                          publicChildren?: ModuleInstance<BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }, ModuleEventData<...>>[] | undefined;
                      },
                      ModuleEventData<object>,
                  >[];
              },
              NodeModuleEventData,
          >[],
      >

    • Parameters

      • index: number

      Returns {
          config: {
              accountPath?: string;
              features?: string[];
              labels?: { [x: string]: undefined | string };
              language?: string;
              name: string;
              os?: string;
              schema: string;
          };
          description?: string;
          lazyStart?: boolean;
          modules?: {
              private?: (
                  | string
                  | {
                      config: {
                          accountPath?: string;
                          features?: string[];
                          labels?: { [x: string]: (...)
                          | (...) };
                          language?: string;
                          name: string;
                          os?: string;
                          schema: string;
                      };
                      description?: string;
                      lazyStart?: boolean;
                      status?: { address: any; children?: { [x: ...]: ... } };
                  }
              )[];
              public?: (
                  | string
                  | {
                      config: {
                          accountPath?: string;
                          features?: string[];
                          labels?: { [x: string]: (...)
                          | (...) };
                          language?: string;
                          name: string;
                          os?: string;
                          schema: string;
                      };
                      description?: string;
                      lazyStart?: boolean;
                      status?: { address: any; children?: { [x: ...]: ... } };
                  }
              )[];
          };
          status?: {
              address: any;
              children?: { [x: Lowercase<string>]: null | string };
          };
      }

    • Returns string

    • Returns Promise<Error[]>

    • Type Parameters

      Parameters

      • value: unknown

      Returns null | PayloadDataWrapper<T>

    • Parameters

      • address: Lowercase<string>

      Returns Promise<null | PayloadDataWrapper<Payload>>

    • Type Parameters

      Parameters

      • Optionalpayload: unknown

      Returns undefined | PayloadDataWrapper<T>

    • Type Parameters

      Parameters

      • obj: unknown

      Returns undefined | PayloadDataWrapper<T>

    • Type Parameters

      Parameters

      • Optionalpayload: T | PayloadDataWrapper<T>

      Returns PayloadDataWrapper<T>

    • Type Parameters

      Parameters

      • payloads: (T | PayloadDataWrapper<T>)[]

      Returns Promise<Record<string, PayloadDataWrapper<T>>>