@servicenow/sdk - v4.13.3
    Preparing search index...

    Variable sys_packageConst

    sys_package: {
        attributes: {
            "all_tables.text_index_translations": true;
            metadata_link_exempt: true;
        };
        audit: true;
        display: "name";
        extensible: true;
        label: "Package";
        name: "sys_package";
        schema: {
            active: Typed<
                boolean,
                {
                    default: true;
                    label: [{ hint: "Package in use?"; label: "Active"; plural: "Active" }];
                },
            >;
            enforce_license: Typed<
                "none"
                | "log"
                | "enforce",
                {
                    attributes: {
                        edge_encryption_enabled: true;
                        edge_encryption_excluded: true;
                    };
                    choices: {
                        enforce: { label: "Required"; sequence: 3 };
                        log: { label: "Monitor"; sequence: 2 };
                        none: { label: "None"; sequence: 1 };
                    };
                    default: "none";
                    dropdown: "dropdown_without_none";
                    label: [
                        {
                            hint: "Subscription requirement for usage of this package";
                            label: "Subscription requirement";
                            plural: "Subscription requirements";
                        },
                    ];
                },
            >;
            ide_created: Typed<
                string,
                {
                    label: [
                        {
                            hint: "Key to indicate which IDE was used to create the package";
                            label: "IDE Created";
                            plural: "IDE Created";
                        },
                    ];
                    maxLength: 10;
                },
            >;
            licensable: Typed<
                boolean,
                {
                    label: [
                        {
                            hint: "Marks this package as licensable";
                            label: "Licensable";
                            plural: "Licensable";
                        },
                    ];
                },
            >;
            license_category: Typed<
                "none"
                | "general"
                | "beta",
                {
                    attributes: {
                        edge_encryption_enabled: true;
                        edge_encryption_excluded: true;
                    };
                    choices: {
                        beta: { label: "Beta"; sequence: 3 };
                        general: { label: "General"; sequence: 2 };
                        none: { label: "Not applicable"; sequence: 1 };
                    };
                    default: "none";
                    dropdown: "dropdown_without_none";
                    label: "Subscription Category";
                },
            >;
            license_model: Typed<
                "none"
                | "fulfiller"
                | "producer"
                | "capacity"
                | "mixed"
                | "app_use",
                {
                    choices: {
                        app_use: { label: "Application in use"; sequence: 6 };
                        capacity: { label: "Capacity"; sequence: 4 };
                        fulfiller: { label: "Fulfiller/Requester"; sequence: 2 };
                        mixed: { label: "Mixed"; sequence: 5 };
                        none: { label: "Not applicable"; sequence: 1 };
                        producer: { label: "Producer"; sequence: 3 };
                    };
                    default: "none";
                    dropdown: "dropdown_without_none";
                    label: "Subscription Model";
                },
            >;
            name: Typed<
                string,
                {
                    attributes: { ts_weight: "50" };
                    label: [
                        {
                            hint: "The display field for the package";
                            label: "Name";
                            plural: "Names";
                        },
                    ];
                    mandatory: true;
                    maxLength: 100;
                },
            >;
            package_json: Typed<
                | string
                | Record<"sys_module">
                | ExplicitKey<"sys_module">
                | TableBrand<"sys_module">,
                {
                    attributes: { encode_utf8: false; readonly_clickthrough: true };
                    label: "Package JSON";
                    maxLength: 255;
                    referenceKey: "path";
                    referenceQual: "pathENDSWITHpackage.json^EQ";
                    referenceTable: "sys_module";
                    useReferenceQualifier: "simple";
                },
            >;
            package_resolver_version: Typed<
                string,
                {
                    attributes: { edge_encryption_enabled: true };
                    default: "1.0.0";
                    label: "Package Resolver Version";
                    maxLength: 255;
                },
            >;
            source: Typed<
                string,
                {
                    default: "javascript:_getID();\r\n\r\nfunction _getID() {\r\n var source = current.getValue('source');\r\n var sys_id = current.getValue('sys_id');\r\n var scope = current.getValue('scope');\r\n return gs.nil(scope) || scope == 'global' ? source||sys_id : source||scope;\r\n}";
                    label: "ID";
                    maxLength: 100;
                },
            >;
            sys_class_name: Typed<
                string,
                {
                    default: "javascript:current.getTableName();";
                    dropdown: "dropdown_without_none";
                    label: "Class";
                    maxLength: 80;
                },
            >;
            trackable: Typed<
                boolean,
                {
                    default: false;
                    label: [
                        {
                            hint: "Track user activity/usage on this package";
                            label: "Trackable";
                            plural: "Trackables";
                        },
                    ];
                },
            >;
            version: Typed<
                `${bigint}.${bigint}.${bigint}`,
                {
                    label: [
                        {
                            hint: "Identifies the latest version of the package in dot-decimal notation";
                            label: "Version";
                            plural: "Versions";
                        },
                    ];
                },
            >;
        };
        textIndex: true;
    } = ...

    Type Declaration

    • Readonlyattributes: { "all_tables.text_index_translations": true; metadata_link_exempt: true }
    • Readonlyaudit: true
    • Readonlydisplay: "name"
    • Readonlyextensible: true
    • Readonlylabel: "Package"
    • Readonlyname: "sys_package"
    • Readonlyschema: {
          active: Typed<
              boolean,
              {
                  default: true;
                  label: [{ hint: "Package in use?"; label: "Active"; plural: "Active" }];
              },
          >;
          enforce_license: Typed<
              "none"
              | "log"
              | "enforce",
              {
                  attributes: {
                      edge_encryption_enabled: true;
                      edge_encryption_excluded: true;
                  };
                  choices: {
                      enforce: { label: "Required"; sequence: 3 };
                      log: { label: "Monitor"; sequence: 2 };
                      none: { label: "None"; sequence: 1 };
                  };
                  default: "none";
                  dropdown: "dropdown_without_none";
                  label: [
                      {
                          hint: "Subscription requirement for usage of this package";
                          label: "Subscription requirement";
                          plural: "Subscription requirements";
                      },
                  ];
              },
          >;
          ide_created: Typed<
              string,
              {
                  label: [
                      {
                          hint: "Key to indicate which IDE was used to create the package";
                          label: "IDE Created";
                          plural: "IDE Created";
                      },
                  ];
                  maxLength: 10;
              },
          >;
          licensable: Typed<
              boolean,
              {
                  label: [
                      {
                          hint: "Marks this package as licensable";
                          label: "Licensable";
                          plural: "Licensable";
                      },
                  ];
              },
          >;
          license_category: Typed<
              "none"
              | "general"
              | "beta",
              {
                  attributes: {
                      edge_encryption_enabled: true;
                      edge_encryption_excluded: true;
                  };
                  choices: {
                      beta: { label: "Beta"; sequence: 3 };
                      general: { label: "General"; sequence: 2 };
                      none: { label: "Not applicable"; sequence: 1 };
                  };
                  default: "none";
                  dropdown: "dropdown_without_none";
                  label: "Subscription Category";
              },
          >;
          license_model: Typed<
              "none"
              | "fulfiller"
              | "producer"
              | "capacity"
              | "mixed"
              | "app_use",
              {
                  choices: {
                      app_use: { label: "Application in use"; sequence: 6 };
                      capacity: { label: "Capacity"; sequence: 4 };
                      fulfiller: { label: "Fulfiller/Requester"; sequence: 2 };
                      mixed: { label: "Mixed"; sequence: 5 };
                      none: { label: "Not applicable"; sequence: 1 };
                      producer: { label: "Producer"; sequence: 3 };
                  };
                  default: "none";
                  dropdown: "dropdown_without_none";
                  label: "Subscription Model";
              },
          >;
          name: Typed<
              string,
              {
                  attributes: { ts_weight: "50" };
                  label: [
                      {
                          hint: "The display field for the package";
                          label: "Name";
                          plural: "Names";
                      },
                  ];
                  mandatory: true;
                  maxLength: 100;
              },
          >;
          package_json: Typed<
              | string
              | Record<"sys_module">
              | ExplicitKey<"sys_module">
              | TableBrand<"sys_module">,
              {
                  attributes: { encode_utf8: false; readonly_clickthrough: true };
                  label: "Package JSON";
                  maxLength: 255;
                  referenceKey: "path";
                  referenceQual: "pathENDSWITHpackage.json^EQ";
                  referenceTable: "sys_module";
                  useReferenceQualifier: "simple";
              },
          >;
          package_resolver_version: Typed<
              string,
              {
                  attributes: { edge_encryption_enabled: true };
                  default: "1.0.0";
                  label: "Package Resolver Version";
                  maxLength: 255;
              },
          >;
          source: Typed<
              string,
              {
                  default: "javascript:_getID();\r\n\r\nfunction _getID() {\r\n var source = current.getValue('source');\r\n var sys_id = current.getValue('sys_id');\r\n var scope = current.getValue('scope');\r\n return gs.nil(scope) || scope == 'global' ? source||sys_id : source||scope;\r\n}";
                  label: "ID";
                  maxLength: 100;
              },
          >;
          sys_class_name: Typed<
              string,
              {
                  default: "javascript:current.getTableName();";
                  dropdown: "dropdown_without_none";
                  label: "Class";
                  maxLength: 80;
              },
          >;
          trackable: Typed<
              boolean,
              {
                  default: false;
                  label: [
                      {
                          hint: "Track user activity/usage on this package";
                          label: "Trackable";
                          plural: "Trackables";
                      },
                  ];
              },
          >;
          version: Typed<
              `${bigint}.${bigint}.${bigint}`,
              {
                  label: [
                      {
                          hint: "Identifies the latest version of the package in dot-decimal notation";
                          label: "Version";
                          plural: "Versions";
                      },
                  ];
              },
          >;
      }
    • ReadonlytextIndex: true