{"version":3,"file":"developer.cjs","sources":["../../../../src/resources/classes/developer.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n  DeveloperDeleteParams,\n  DeveloperGetParams,\n  DeveloperGetResponse,\n  DeveloperInviteParams,\n  DeveloperInviteResponse,\n  DeveloperListResponse,\n  DeveloperListV2Params,\n  DeveloperListV2Response,\n  DeveloperUpdateParams,\n  DeveloperUpdateResponse,\n  OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Developer extends SDKResource {\n  constructor(config: OystehrConfig) {\n    super(config);\n  }\n  #baseUrlThunk(): string {\n    return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n  }\n  /**\n   * Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.\n   *\n   * Access Policy Action: `IAM:GetDeveloper`\n   * Access Policy Resource: `IAM:Developer`\n   */\n  get(params: DeveloperGetParams, request?: OystehrClientRequest): Promise<DeveloperGetResponse> {\n    return this.request('/developer/{id}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n  }\n  /**\n   * Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.\n   *\n   * Access Policy Action: `IAM:UpdateDeveloper`\n   * Access Policy Resource: `IAM:Developer`\n   */\n  update(params: DeveloperUpdateParams, request?: OystehrClientRequest): Promise<DeveloperUpdateResponse> {\n    return this.request('/developer/{id}', 'patch', this.#baseUrlThunk.bind(this))(params, request);\n  }\n  /**\n   * Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.\n   *\n   * Access Policy Action: `IAM:RemoveDeveloper`\n   * Access Policy Resource: `IAM:Developer`\n   */\n  delete(params: DeveloperDeleteParams, request?: OystehrClientRequest): Promise<void> {\n    return this.request('/developer/{id}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n  }\n  /**\n   * Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.\n   *\n   * Access Policy Action: `IAM:InviteDeveloper`\n   * Access Policy Resource: `IAM:Developer`\n   */\n  invite(params: DeveloperInviteParams, request?: OystehrClientRequest): Promise<DeveloperInviteResponse> {\n    return this.request('/developer/invite', 'post', this.#baseUrlThunk.bind(this))(params, request);\n  }\n  /**\n   * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_developer-v2-list) instead.\n   *\n   * Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.\n   *\n   * Access Policy Action: `IAM:ListAllDevelopers`\n   * Access Policy Resource: `IAM:Developer`\n   */\n  list(request?: OystehrClientRequest): Promise<DeveloperListResponse> {\n    return this.request('/developer', 'get', this.#baseUrlThunk.bind(this))(request);\n  }\n  /**\n   * Get Developers in the Project with pagination, sort, sort order and filtering. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n   *\n   * Access Policy Action: `Project:ListAllUsers`\n   * Access Policy Resource: `Project:Settings`\n   */\n  listV2(params: DeveloperListV2Params, request?: OystehrClientRequest): Promise<DeveloperListV2Response>;\n  /**\n   * Get Developers in the Project with pagination, sort, sort order and filtering. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n   *\n   * Access Policy Action: `Project:ListAllUsers`\n   * Access Policy Resource: `Project:Settings`\n   */\n  listV2(request?: OystehrClientRequest): Promise<DeveloperListV2Response>;\n  /**\n   * Get Developers in the Project with pagination, sort, sort order and filtering. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.\n   *\n   * Access Policy Action: `Project:ListAllUsers`\n   * Access Policy Resource: `Project:Settings`\n   */\n  listV2(\n    params?: DeveloperListV2Params | OystehrClientRequest,\n    request?: OystehrClientRequest\n  ): Promise<DeveloperListV2Response> {\n    return this.request('/developer/v2/list', 'get', this.#baseUrlThunk.bind(this))(params, request);\n  }\n}\n"],"names":["SDKResource"],"mappings":";;;;AAAA;AAkBM,MAAO,SAAU,SAAQA,kBAAW,CAAA;AACxC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;IACD,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC,CAAC;KACvF;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAA0B,EAAE,OAA8B,EAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/F;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAA6B,EAAE,OAA8B,EAAA;QAClE,OAAO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