jamespot-user-api
    Preparing search index...

    Class AdminLicenseApi

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    network: Network

    Methods

    • Retrieve the assignment license user mode between automatic | manual

      Parameters

      • type: string

        retrieve the automatic license assignation

      • Optionalsignal: AbortSignal

        the signal to cancel the request

      Returns Promise<ApiWrapper<string, BaseMessages>>

      a string who's the current assignment selected

    • Type Parameters

      Parameters

      • payload: GetLicenseArticlesParams
      • params: {
            format: "raw-little" | "raw-list" | "raw-view" | undefined;
            formatExtension: (
                | "comments"
                | "search"
                | "actions"
                | "attachments"
                | "contact"
                | "filebank"
                | "licenses"
                | "licensesExtrabot"
                | "messenger"
                | "filebankPath"
                | "parentArticle"
                | "quarantine"
                | "quizFieldDefinitions"
                | "quizResponseRecord"
                | "recurringEventRecord"
                | "socialEventRecord"
                | "surveyDateRecord"
                | "bookmark"
            )[];
            signal?: AbortSignal;
        }

      Returns Promise<ApiWrapper<PagingResults<GetLicenseArticle<T, K>>, BaseMessages>>

    • Type Parameters

      Parameters

      • __namedParameters: GetLicenseKindUsersParams
      • format: "raw-little" | "raw-list" | "raw-view" | undefined
      • Optionalsignal: AbortSignal

      Returns Promise<
          ApiWrapper<
              PagingResults<
                  {
                      [k in "user"
                      | "license"]: addQuestionMarks<
                          baseObjectOutputType<
                              {
                                  license: ZodUnion<[ZodLiteral<(...)>, ZodLiteral<(...)>]>;
                                  user: ZodType<T, ZodTypeDef, T>;
                              },
                          >,
                          any,
                      >[k]
                  },
              >,
              BaseMessages,
          >,
      >

    • Assign available licenses and unassign license for inactive users

      Parameters

      • type: string

        the type of licenses for which we will unassign and assign the possible licenses

      • Optionalkind: string

        particular license kind to unassign and assign

      Returns Promise<ApiWrapper<boolean, BaseMessages>>

      boolean