export type GetApiApiAdminProfileArgs = {'address.contains'?: string | undefined, 'address.doesNotContain'?: string | undefined, 'address.equals'?: string | undefined, 'address.in'?: Array | undefined, 'address.notEquals'?: string | undefined, 'address.notIn'?: Array | undefined, 'address.specified'?: boolean | undefined, ageRange?: string | undefined, 'birthdayFrom.equals'?: string | undefined, 'birthdayFrom.greaterThan'?: string | undefined, 'birthdayFrom.greaterThanOrEqual'?: string | undefined, 'birthdayFrom.in[0].chronology.calendarType'?: string | undefined, 'birthdayFrom.in[0].chronology.id'?: string | undefined, 'birthdayFrom.in[0].dayOfMonth'?: number | undefined, 'birthdayFrom.in[0].dayOfWeek'?: ('MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY') | undefined, 'birthdayFrom.in[0].dayOfYear'?: number | undefined, 'birthdayFrom.in[0].era'?: ('BCE' | 'CE') | undefined, 'birthdayFrom.in[0].leapYear'?: boolean | undefined, 'birthdayFrom.in[0].month'?: ('JANUARY' | 'FEBRUARY' | 'MARCH' | 'APRIL' | 'MAY' | 'JUNE' | 'JULY' | 'AUGUST' | 'SEPTEMBER' | 'OCTOBER' | 'NOVEMBER' | 'DECEMBER') | undefined, 'birthdayFrom.in[0].monthValue'?: number | undefined, 'birthdayFrom.in[0].year'?: number | undefined, 'birthdayFrom.lessThan'?: string | undefined, 'birthdayFrom.lessThanOrEqual'?: string | undefined, 'birthdayFrom.notEquals'?: string | undefined, 'birthdayFrom.notIn[0].chronology.calendarType'?: string | undefined, 'birthdayFrom.notIn[0].chronology.id'?: string | undefined, 'birthdayFrom.notIn[0].dayOfMonth'?: number | undefined, 'birthdayFrom.notIn[0].dayOfWeek'?: ('MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY') | undefined, 'birthdayFrom.notIn[0].dayOfYear'?: number | undefined, 'birthdayFrom.notIn[0].era'?: ('BCE' | 'CE') | undefined, 'birthdayFrom.notIn[0].leapYear'?: boolean | undefined, 'birthdayFrom.notIn[0].month'?: ('JANUARY' | 'FEBRUARY' | 'MARCH' | 'APRIL' | 'MAY' | 'JUNE' | 'JULY' | 'AUGUST' | 'SEPTEMBER' | 'OCTOBER' | 'NOVEMBER' | 'DECEMBER') | undefined, 'birthdayFrom.notIn[0].monthValue'?: number | undefined, 'birthdayFrom.notIn[0].year'?: number | undefined, 'birthdayFrom.specified'?: boolean | undefined, 'birthdayTo.equals'?: string | undefined, 'birthdayTo.greaterThan'?: string | undefined, 'birthdayTo.greaterThanOrEqual'?: string | undefined, 'birthdayTo.in[0].chronology.calendarType'?: string | undefined, 'birthdayTo.in[0].chronology.id'?: string | undefined, 'birthdayTo.in[0].dayOfMonth'?: number | undefined, 'birthdayTo.in[0].dayOfWeek'?: ('MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY') | undefined, 'birthdayTo.in[0].dayOfYear'?: number | undefined, 'birthdayTo.in[0].era'?: ('BCE' | 'CE') | undefined, 'birthdayTo.in[0].leapYear'?: boolean | undefined, 'birthdayTo.in[0].month'?: ('JANUARY' | 'FEBRUARY' | 'MARCH' | 'APRIL' | 'MAY' | 'JUNE' | 'JULY' | 'AUGUST' | 'SEPTEMBER' | 'OCTOBER' | 'NOVEMBER' | 'DECEMBER') | undefined, 'birthdayTo.in[0].monthValue'?: number | undefined, 'birthdayTo.in[0].year'?: number | undefined, 'birthdayTo.lessThan'?: string | undefined, 'birthdayTo.lessThanOrEqual'?: string | undefined, 'birthdayTo.notEquals'?: string | undefined, 'birthdayTo.notIn[0].chronology.calendarType'?: string | undefined, 'birthdayTo.notIn[0].chronology.id'?: string | undefined, 'birthdayTo.notIn[0].dayOfMonth'?: number | undefined, 'birthdayTo.notIn[0].dayOfWeek'?: ('MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY') | undefined, 'birthdayTo.notIn[0].dayOfYear'?: number | undefined, 'birthdayTo.notIn[0].era'?: ('BCE' | 'CE') | undefined, 'birthdayTo.notIn[0].leapYear'?: boolean | undefined, 'birthdayTo.notIn[0].month'?: ('JANUARY' | 'FEBRUARY' | 'MARCH' | 'APRIL' | 'MAY' | 'JUNE' | 'JULY' | 'AUGUST' | 'SEPTEMBER' | 'OCTOBER' | 'NOVEMBER' | 'DECEMBER') | undefined, 'birthdayTo.notIn[0].monthValue'?: number | undefined, 'birthdayTo.notIn[0].year'?: number | undefined, 'birthdayTo.specified'?: boolean | undefined, 'children.equals'?: number | undefined, 'children.greaterThan'?: number | undefined, 'children.greaterThanOrEqual'?: number | undefined, 'children.in'?: Array | undefined, 'children.lessThan'?: number | undefined, 'children.lessThanOrEqual'?: number | undefined, 'children.notEquals'?: number | undefined, 'children.notIn'?: Array | undefined, 'children.specified'?: boolean | undefined, 'educationDegree.equals'?: ('ELEMENTARY' | 'GENERAL' | 'DIPLOMA' | 'ASSOCIATE' | 'BACHELOR' | 'MASTER' | 'DOCTORATE') | undefined, 'educationDegree.in'?: (Array<'ELEMENTARY' | 'GENERAL' | 'DIPLOMA' | 'ASSOCIATE' | 'BACHELOR' | 'MASTER' | 'DOCTORATE'>) | undefined, 'educationDegree.notEquals'?: ('ELEMENTARY' | 'GENERAL' | 'DIPLOMA' | 'ASSOCIATE' | 'BACHELOR' | 'MASTER' | 'DOCTORATE') | undefined, 'educationDegree.notIn'?: (Array<'ELEMENTARY' | 'GENERAL' | 'DIPLOMA' | 'ASSOCIATE' | 'BACHELOR' | 'MASTER' | 'DOCTORATE'>) | undefined, 'educationDegree.specified'?: boolean | undefined, 'firstName.contains'?: string | undefined, 'firstName.doesNotContain'?: string | undefined, 'firstName.equals'?: string | undefined, 'firstName.in'?: Array | undefined, 'firstName.notEquals'?: string | undefined, 'firstName.notIn'?: Array | undefined, 'firstName.specified'?: boolean | undefined, 'fromDate.equals'?: string | undefined, 'fromDate.greaterThan'?: string | undefined, 'fromDate.greaterThanOrEqual'?: string | undefined, 'fromDate.in[0].chronology.calendarType'?: string | undefined, 'fromDate.in[0].chronology.id'?: string | undefined, 'fromDate.in[0].dayOfMonth'?: number | undefined, 'fromDate.in[0].dayOfWeek'?: ('MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY') | undefined, 'fromDate.in[0].dayOfYear'?: number | undefined, 'fromDate.in[0].era'?: ('BCE' | 'CE') | undefined, 'fromDate.in[0].leapYear'?: boolean | undefined, 'fromDate.in[0].month'?: ('JANUARY' | 'FEBRUARY' | 'MARCH' | 'APRIL' | 'MAY' | 'JUNE' | 'JULY' | 'AUGUST' | 'SEPTEMBER' | 'OCTOBER' | 'NOVEMBER' | 'DECEMBER') | undefined, 'fromDate.in[0].monthValue'?: number | undefined, 'fromDate.in[0].year'?: number | undefined, 'fromDate.lessThan'?: string | undefined, 'fromDate.lessThanOrEqual'?: string | undefined, 'fromDate.notEquals'?: string | undefined, 'fromDate.notIn[0].chronology.calendarType'?: string | undefined, 'fromDate.notIn[0].chronology.id'?: string | undefined, 'fromDate.notIn[0].dayOfMonth'?: number | undefined, 'fromDate.notIn[0].dayOfWeek'?: ('MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY') | undefined, 'fromDate.notIn[0].dayOfYear'?: number | undefined, 'fromDate.notIn[0].era'?: ('BCE' | 'CE') | undefined, 'fromDate.notIn[0].leapYear'?: boolean | undefined, 'fromDate.notIn[0].month'?: ('JANUARY' | 'FEBRUARY' | 'MARCH' | 'APRIL' | 'MAY' | 'JUNE' | 'JULY' | 'AUGUST' | 'SEPTEMBER' | 'OCTOBER' | 'NOVEMBER' | 'DECEMBER') | undefined, 'fromDate.notIn[0].monthValue'?: number | undefined, 'fromDate.notIn[0].year'?: number | undefined, 'fromDate.specified'?: boolean | undefined, 'gender.equals'?: ('MALE' | 'FEMALE') | undefined, 'gender.in'?: (Array<'MALE' | 'FEMALE'>) | undefined, 'gender.notEquals'?: ('MALE' | 'FEMALE') | undefined, 'gender.notIn'?: (Array<'MALE' | 'FEMALE'>) | undefined, 'gender.specified'?: boolean | undefined, 'jobTitle.contains'?: string | undefined, 'jobTitle.doesNotContain'?: string | undefined, 'jobTitle.equals'?: string | undefined, 'jobTitle.in'?: Array | undefined, 'jobTitle.notEquals'?: string | undefined, 'jobTitle.notIn'?: Array | undefined, 'jobTitle.specified'?: boolean | undefined, 'lastName.contains'?: string | undefined, 'lastName.doesNotContain'?: string | undefined, 'lastName.equals'?: string | undefined, 'lastName.in'?: Array | undefined, 'lastName.notEquals'?: string | undefined, 'lastName.notIn'?: Array | undefined, 'lastName.specified'?: boolean | undefined, 'maritalStatus.equals'?: ('SINGLE' | 'MARRIED') | undefined, 'maritalStatus.in'?: (Array<'SINGLE' | 'MARRIED'>) | undefined, 'maritalStatus.notEquals'?: ('SINGLE' | 'MARRIED') | undefined, 'maritalStatus.notIn'?: (Array<'SINGLE' | 'MARRIED'>) | undefined, 'maritalStatus.specified'?: boolean | undefined, 'mobile.contains'?: string | undefined, 'mobile.doesNotContain'?: string | undefined, 'mobile.equals'?: string | undefined, 'mobile.in'?: Array | undefined, 'mobile.notEquals'?: string | undefined, 'mobile.notIn'?: Array | undefined, 'mobile.specified'?: boolean | undefined, 'ostanId.equals'?: number | undefined, 'ostanId.greaterThan'?: number | undefined, 'ostanId.greaterThanOrEqual'?: number | undefined, 'ostanId.in'?: Array | undefined, 'ostanId.lessThan'?: number | undefined, 'ostanId.lessThanOrEqual'?: number | undefined, 'ostanId.notEquals'?: number | undefined, 'ostanId.notIn'?: Array | undefined, 'ostanId.specified'?: boolean | undefined, page?: number | undefined, 'plan.equals'?: ('BASIC' | 'GOLD' | 'STAR' | 'GALAXY') | undefined, 'plan.in'?: (Array<'BASIC' | 'GOLD' | 'STAR' | 'GALAXY'>) | undefined, 'plan.notEquals'?: ('BASIC' | 'GOLD' | 'STAR' | 'GALAXY') | undefined, 'plan.notIn'?: (Array<'BASIC' | 'GOLD' | 'STAR' | 'GALAXY'>) | undefined, 'plan.specified'?: boolean | undefined, 'referralCode.equals'?: number | undefined, 'referralCode.greaterThan'?: number | undefined, 'referralCode.greaterThanOrEqual'?: number | undefined, 'referralCode.in'?: Array | undefined, 'referralCode.lessThan'?: number | undefined, 'referralCode.lessThanOrEqual'?: number | undefined, 'referralCode.notEquals'?: number | undefined, 'referralCode.notIn'?: Array | undefined, 'referralCode.specified'?: boolean | undefined, 'referredCode.equals'?: number | undefined, 'referredCode.greaterThan'?: number | undefined, 'referredCode.greaterThanOrEqual'?: number | undefined, 'referredCode.in'?: Array | undefined, 'referredCode.lessThan'?: number | undefined, 'referredCode.lessThanOrEqual'?: number | undefined, 'referredCode.notEquals'?: number | undefined, 'referredCode.notIn'?: Array | undefined, 'referredCode.specified'?: boolean | undefined, size?: number | undefined, sort?: Array | undefined, 'toDate.equals'?: string | undefined, 'toDate.greaterThan'?: string | undefined, 'toDate.greaterThanOrEqual'?: string | undefined, 'toDate.in[0].chronology.calendarType'?: string | undefined, 'toDate.in[0].chronology.id'?: string | undefined, 'toDate.in[0].dayOfMonth'?: number | undefined, 'toDate.in[0].dayOfWeek'?: ('MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY') | undefined, 'toDate.in[0].dayOfYear'?: number | undefined, 'toDate.in[0].era'?: ('BCE' | 'CE') | undefined, 'toDate.in[0].leapYear'?: boolean | undefined, 'toDate.in[0].month'?: ('JANUARY' | 'FEBRUARY' | 'MARCH' | 'APRIL' | 'MAY' | 'JUNE' | 'JULY' | 'AUGUST' | 'SEPTEMBER' | 'OCTOBER' | 'NOVEMBER' | 'DECEMBER') | undefined, 'toDate.in[0].monthValue'?: number | undefined, 'toDate.in[0].year'?: number | undefined, 'toDate.lessThan'?: string | undefined, 'toDate.lessThanOrEqual'?: string | undefined, 'toDate.notEquals'?: string | undefined, 'toDate.notIn[0].chronology.calendarType'?: string | undefined, 'toDate.notIn[0].chronology.id'?: string | undefined, 'toDate.notIn[0].dayOfMonth'?: number | undefined, 'toDate.notIn[0].dayOfWeek'?: ('MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY') | undefined, 'toDate.notIn[0].dayOfYear'?: number | undefined, 'toDate.notIn[0].era'?: ('BCE' | 'CE') | undefined, 'toDate.notIn[0].leapYear'?: boolean | undefined, 'toDate.notIn[0].month'?: ('JANUARY' | 'FEBRUARY' | 'MARCH' | 'APRIL' | 'MAY' | 'JUNE' | 'JULY' | 'AUGUST' | 'SEPTEMBER' | 'OCTOBER' | 'NOVEMBER' | 'DECEMBER') | undefined, 'toDate.notIn[0].monthValue'?: number | undefined, 'toDate.notIn[0].year'?: number | undefined, 'toDate.specified'?: boolean | undefined}; export type GetApiApiAdminProfileOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * list * * GET /api/admin/profile */ export const getApiApiAdminProfile = async (args: GetApiApiAdminProfileArgs, options: GetApiApiAdminProfileOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") if (args['address.contains'] != null) query.append("address.contains", String(args['address.contains'])) if (args['address.doesNotContain'] != null) query.append("address.doesNotContain", String(args['address.doesNotContain'])) if (args['address.equals'] != null) query.append("address.equals", String(args['address.equals'])) for (const item of args['address.in'] ?? []) query.append("address.in", String(item)) if (args['address.notEquals'] != null) query.append("address.notEquals", String(args['address.notEquals'])) for (const item of args['address.notIn'] ?? []) query.append("address.notIn", String(item)) if (args['address.specified'] != null) query.append("address.specified", String(args['address.specified'])) if (args.ageRange != null) query.append("ageRange", String(args.ageRange)) if (args['birthdayFrom.equals'] != null) query.append("birthdayFrom.equals", String(args['birthdayFrom.equals'])) if (args['birthdayFrom.greaterThan'] != null) query.append("birthdayFrom.greaterThan", String(args['birthdayFrom.greaterThan'])) if (args['birthdayFrom.greaterThanOrEqual'] != null) query.append("birthdayFrom.greaterThanOrEqual", String(args['birthdayFrom.greaterThanOrEqual'])) if (args['birthdayFrom.in[0].chronology.calendarType'] != null) query.append("birthdayFrom.in[0].chronology.calendarType", String(args['birthdayFrom.in[0].chronology.calendarType'])) if (args['birthdayFrom.in[0].chronology.id'] != null) query.append("birthdayFrom.in[0].chronology.id", String(args['birthdayFrom.in[0].chronology.id'])) if (args['birthdayFrom.in[0].dayOfMonth'] != null) query.append("birthdayFrom.in[0].dayOfMonth", String(args['birthdayFrom.in[0].dayOfMonth'])) if (args['birthdayFrom.in[0].dayOfWeek'] != null) query.append("birthdayFrom.in[0].dayOfWeek", String(args['birthdayFrom.in[0].dayOfWeek'])) if (args['birthdayFrom.in[0].dayOfYear'] != null) query.append("birthdayFrom.in[0].dayOfYear", String(args['birthdayFrom.in[0].dayOfYear'])) if (args['birthdayFrom.in[0].era'] != null) query.append("birthdayFrom.in[0].era", String(args['birthdayFrom.in[0].era'])) if (args['birthdayFrom.in[0].leapYear'] != null) query.append("birthdayFrom.in[0].leapYear", String(args['birthdayFrom.in[0].leapYear'])) if (args['birthdayFrom.in[0].month'] != null) query.append("birthdayFrom.in[0].month", String(args['birthdayFrom.in[0].month'])) if (args['birthdayFrom.in[0].monthValue'] != null) query.append("birthdayFrom.in[0].monthValue", String(args['birthdayFrom.in[0].monthValue'])) if (args['birthdayFrom.in[0].year'] != null) query.append("birthdayFrom.in[0].year", String(args['birthdayFrom.in[0].year'])) if (args['birthdayFrom.lessThan'] != null) query.append("birthdayFrom.lessThan", String(args['birthdayFrom.lessThan'])) if (args['birthdayFrom.lessThanOrEqual'] != null) query.append("birthdayFrom.lessThanOrEqual", String(args['birthdayFrom.lessThanOrEqual'])) if (args['birthdayFrom.notEquals'] != null) query.append("birthdayFrom.notEquals", String(args['birthdayFrom.notEquals'])) if (args['birthdayFrom.notIn[0].chronology.calendarType'] != null) query.append("birthdayFrom.notIn[0].chronology.calendarType", String(args['birthdayFrom.notIn[0].chronology.calendarType'])) if (args['birthdayFrom.notIn[0].chronology.id'] != null) query.append("birthdayFrom.notIn[0].chronology.id", String(args['birthdayFrom.notIn[0].chronology.id'])) if (args['birthdayFrom.notIn[0].dayOfMonth'] != null) query.append("birthdayFrom.notIn[0].dayOfMonth", String(args['birthdayFrom.notIn[0].dayOfMonth'])) if (args['birthdayFrom.notIn[0].dayOfWeek'] != null) query.append("birthdayFrom.notIn[0].dayOfWeek", String(args['birthdayFrom.notIn[0].dayOfWeek'])) if (args['birthdayFrom.notIn[0].dayOfYear'] != null) query.append("birthdayFrom.notIn[0].dayOfYear", String(args['birthdayFrom.notIn[0].dayOfYear'])) if (args['birthdayFrom.notIn[0].era'] != null) query.append("birthdayFrom.notIn[0].era", String(args['birthdayFrom.notIn[0].era'])) if (args['birthdayFrom.notIn[0].leapYear'] != null) query.append("birthdayFrom.notIn[0].leapYear", String(args['birthdayFrom.notIn[0].leapYear'])) if (args['birthdayFrom.notIn[0].month'] != null) query.append("birthdayFrom.notIn[0].month", String(args['birthdayFrom.notIn[0].month'])) if (args['birthdayFrom.notIn[0].monthValue'] != null) query.append("birthdayFrom.notIn[0].monthValue", String(args['birthdayFrom.notIn[0].monthValue'])) if (args['birthdayFrom.notIn[0].year'] != null) query.append("birthdayFrom.notIn[0].year", String(args['birthdayFrom.notIn[0].year'])) if (args['birthdayFrom.specified'] != null) query.append("birthdayFrom.specified", String(args['birthdayFrom.specified'])) if (args['birthdayTo.equals'] != null) query.append("birthdayTo.equals", String(args['birthdayTo.equals'])) if (args['birthdayTo.greaterThan'] != null) query.append("birthdayTo.greaterThan", String(args['birthdayTo.greaterThan'])) if (args['birthdayTo.greaterThanOrEqual'] != null) query.append("birthdayTo.greaterThanOrEqual", String(args['birthdayTo.greaterThanOrEqual'])) if (args['birthdayTo.in[0].chronology.calendarType'] != null) query.append("birthdayTo.in[0].chronology.calendarType", String(args['birthdayTo.in[0].chronology.calendarType'])) if (args['birthdayTo.in[0].chronology.id'] != null) query.append("birthdayTo.in[0].chronology.id", String(args['birthdayTo.in[0].chronology.id'])) if (args['birthdayTo.in[0].dayOfMonth'] != null) query.append("birthdayTo.in[0].dayOfMonth", String(args['birthdayTo.in[0].dayOfMonth'])) if (args['birthdayTo.in[0].dayOfWeek'] != null) query.append("birthdayTo.in[0].dayOfWeek", String(args['birthdayTo.in[0].dayOfWeek'])) if (args['birthdayTo.in[0].dayOfYear'] != null) query.append("birthdayTo.in[0].dayOfYear", String(args['birthdayTo.in[0].dayOfYear'])) if (args['birthdayTo.in[0].era'] != null) query.append("birthdayTo.in[0].era", String(args['birthdayTo.in[0].era'])) if (args['birthdayTo.in[0].leapYear'] != null) query.append("birthdayTo.in[0].leapYear", String(args['birthdayTo.in[0].leapYear'])) if (args['birthdayTo.in[0].month'] != null) query.append("birthdayTo.in[0].month", String(args['birthdayTo.in[0].month'])) if (args['birthdayTo.in[0].monthValue'] != null) query.append("birthdayTo.in[0].monthValue", String(args['birthdayTo.in[0].monthValue'])) if (args['birthdayTo.in[0].year'] != null) query.append("birthdayTo.in[0].year", String(args['birthdayTo.in[0].year'])) if (args['birthdayTo.lessThan'] != null) query.append("birthdayTo.lessThan", String(args['birthdayTo.lessThan'])) if (args['birthdayTo.lessThanOrEqual'] != null) query.append("birthdayTo.lessThanOrEqual", String(args['birthdayTo.lessThanOrEqual'])) if (args['birthdayTo.notEquals'] != null) query.append("birthdayTo.notEquals", String(args['birthdayTo.notEquals'])) if (args['birthdayTo.notIn[0].chronology.calendarType'] != null) query.append("birthdayTo.notIn[0].chronology.calendarType", String(args['birthdayTo.notIn[0].chronology.calendarType'])) if (args['birthdayTo.notIn[0].chronology.id'] != null) query.append("birthdayTo.notIn[0].chronology.id", String(args['birthdayTo.notIn[0].chronology.id'])) if (args['birthdayTo.notIn[0].dayOfMonth'] != null) query.append("birthdayTo.notIn[0].dayOfMonth", String(args['birthdayTo.notIn[0].dayOfMonth'])) if (args['birthdayTo.notIn[0].dayOfWeek'] != null) query.append("birthdayTo.notIn[0].dayOfWeek", String(args['birthdayTo.notIn[0].dayOfWeek'])) if (args['birthdayTo.notIn[0].dayOfYear'] != null) query.append("birthdayTo.notIn[0].dayOfYear", String(args['birthdayTo.notIn[0].dayOfYear'])) if (args['birthdayTo.notIn[0].era'] != null) query.append("birthdayTo.notIn[0].era", String(args['birthdayTo.notIn[0].era'])) if (args['birthdayTo.notIn[0].leapYear'] != null) query.append("birthdayTo.notIn[0].leapYear", String(args['birthdayTo.notIn[0].leapYear'])) if (args['birthdayTo.notIn[0].month'] != null) query.append("birthdayTo.notIn[0].month", String(args['birthdayTo.notIn[0].month'])) if (args['birthdayTo.notIn[0].monthValue'] != null) query.append("birthdayTo.notIn[0].monthValue", String(args['birthdayTo.notIn[0].monthValue'])) if (args['birthdayTo.notIn[0].year'] != null) query.append("birthdayTo.notIn[0].year", String(args['birthdayTo.notIn[0].year'])) if (args['birthdayTo.specified'] != null) query.append("birthdayTo.specified", String(args['birthdayTo.specified'])) if (args['children.equals'] != null) query.append("children.equals", String(args['children.equals'])) if (args['children.greaterThan'] != null) query.append("children.greaterThan", String(args['children.greaterThan'])) if (args['children.greaterThanOrEqual'] != null) query.append("children.greaterThanOrEqual", String(args['children.greaterThanOrEqual'])) for (const item of args['children.in'] ?? []) query.append("children.in", String(item)) if (args['children.lessThan'] != null) query.append("children.lessThan", String(args['children.lessThan'])) if (args['children.lessThanOrEqual'] != null) query.append("children.lessThanOrEqual", String(args['children.lessThanOrEqual'])) if (args['children.notEquals'] != null) query.append("children.notEquals", String(args['children.notEquals'])) for (const item of args['children.notIn'] ?? []) query.append("children.notIn", String(item)) if (args['children.specified'] != null) query.append("children.specified", String(args['children.specified'])) if (args['educationDegree.equals'] != null) query.append("educationDegree.equals", String(args['educationDegree.equals'])) for (const item of args['educationDegree.in'] ?? []) query.append("educationDegree.in", String(item)) if (args['educationDegree.notEquals'] != null) query.append("educationDegree.notEquals", String(args['educationDegree.notEquals'])) for (const item of args['educationDegree.notIn'] ?? []) query.append("educationDegree.notIn", String(item)) if (args['educationDegree.specified'] != null) query.append("educationDegree.specified", String(args['educationDegree.specified'])) if (args['firstName.contains'] != null) query.append("firstName.contains", String(args['firstName.contains'])) if (args['firstName.doesNotContain'] != null) query.append("firstName.doesNotContain", String(args['firstName.doesNotContain'])) if (args['firstName.equals'] != null) query.append("firstName.equals", String(args['firstName.equals'])) for (const item of args['firstName.in'] ?? []) query.append("firstName.in", String(item)) if (args['firstName.notEquals'] != null) query.append("firstName.notEquals", String(args['firstName.notEquals'])) for (const item of args['firstName.notIn'] ?? []) query.append("firstName.notIn", String(item)) if (args['firstName.specified'] != null) query.append("firstName.specified", String(args['firstName.specified'])) if (args['fromDate.equals'] != null) query.append("fromDate.equals", String(args['fromDate.equals'])) if (args['fromDate.greaterThan'] != null) query.append("fromDate.greaterThan", String(args['fromDate.greaterThan'])) if (args['fromDate.greaterThanOrEqual'] != null) query.append("fromDate.greaterThanOrEqual", String(args['fromDate.greaterThanOrEqual'])) if (args['fromDate.in[0].chronology.calendarType'] != null) query.append("fromDate.in[0].chronology.calendarType", String(args['fromDate.in[0].chronology.calendarType'])) if (args['fromDate.in[0].chronology.id'] != null) query.append("fromDate.in[0].chronology.id", String(args['fromDate.in[0].chronology.id'])) if (args['fromDate.in[0].dayOfMonth'] != null) query.append("fromDate.in[0].dayOfMonth", String(args['fromDate.in[0].dayOfMonth'])) if (args['fromDate.in[0].dayOfWeek'] != null) query.append("fromDate.in[0].dayOfWeek", String(args['fromDate.in[0].dayOfWeek'])) if (args['fromDate.in[0].dayOfYear'] != null) query.append("fromDate.in[0].dayOfYear", String(args['fromDate.in[0].dayOfYear'])) if (args['fromDate.in[0].era'] != null) query.append("fromDate.in[0].era", String(args['fromDate.in[0].era'])) if (args['fromDate.in[0].leapYear'] != null) query.append("fromDate.in[0].leapYear", String(args['fromDate.in[0].leapYear'])) if (args['fromDate.in[0].month'] != null) query.append("fromDate.in[0].month", String(args['fromDate.in[0].month'])) if (args['fromDate.in[0].monthValue'] != null) query.append("fromDate.in[0].monthValue", String(args['fromDate.in[0].monthValue'])) if (args['fromDate.in[0].year'] != null) query.append("fromDate.in[0].year", String(args['fromDate.in[0].year'])) if (args['fromDate.lessThan'] != null) query.append("fromDate.lessThan", String(args['fromDate.lessThan'])) if (args['fromDate.lessThanOrEqual'] != null) query.append("fromDate.lessThanOrEqual", String(args['fromDate.lessThanOrEqual'])) if (args['fromDate.notEquals'] != null) query.append("fromDate.notEquals", String(args['fromDate.notEquals'])) if (args['fromDate.notIn[0].chronology.calendarType'] != null) query.append("fromDate.notIn[0].chronology.calendarType", String(args['fromDate.notIn[0].chronology.calendarType'])) if (args['fromDate.notIn[0].chronology.id'] != null) query.append("fromDate.notIn[0].chronology.id", String(args['fromDate.notIn[0].chronology.id'])) if (args['fromDate.notIn[0].dayOfMonth'] != null) query.append("fromDate.notIn[0].dayOfMonth", String(args['fromDate.notIn[0].dayOfMonth'])) if (args['fromDate.notIn[0].dayOfWeek'] != null) query.append("fromDate.notIn[0].dayOfWeek", String(args['fromDate.notIn[0].dayOfWeek'])) if (args['fromDate.notIn[0].dayOfYear'] != null) query.append("fromDate.notIn[0].dayOfYear", String(args['fromDate.notIn[0].dayOfYear'])) if (args['fromDate.notIn[0].era'] != null) query.append("fromDate.notIn[0].era", String(args['fromDate.notIn[0].era'])) if (args['fromDate.notIn[0].leapYear'] != null) query.append("fromDate.notIn[0].leapYear", String(args['fromDate.notIn[0].leapYear'])) if (args['fromDate.notIn[0].month'] != null) query.append("fromDate.notIn[0].month", String(args['fromDate.notIn[0].month'])) if (args['fromDate.notIn[0].monthValue'] != null) query.append("fromDate.notIn[0].monthValue", String(args['fromDate.notIn[0].monthValue'])) if (args['fromDate.notIn[0].year'] != null) query.append("fromDate.notIn[0].year", String(args['fromDate.notIn[0].year'])) if (args['fromDate.specified'] != null) query.append("fromDate.specified", String(args['fromDate.specified'])) if (args['gender.equals'] != null) query.append("gender.equals", String(args['gender.equals'])) for (const item of args['gender.in'] ?? []) query.append("gender.in", String(item)) if (args['gender.notEquals'] != null) query.append("gender.notEquals", String(args['gender.notEquals'])) for (const item of args['gender.notIn'] ?? []) query.append("gender.notIn", String(item)) if (args['gender.specified'] != null) query.append("gender.specified", String(args['gender.specified'])) if (args['jobTitle.contains'] != null) query.append("jobTitle.contains", String(args['jobTitle.contains'])) if (args['jobTitle.doesNotContain'] != null) query.append("jobTitle.doesNotContain", String(args['jobTitle.doesNotContain'])) if (args['jobTitle.equals'] != null) query.append("jobTitle.equals", String(args['jobTitle.equals'])) for (const item of args['jobTitle.in'] ?? []) query.append("jobTitle.in", String(item)) if (args['jobTitle.notEquals'] != null) query.append("jobTitle.notEquals", String(args['jobTitle.notEquals'])) for (const item of args['jobTitle.notIn'] ?? []) query.append("jobTitle.notIn", String(item)) if (args['jobTitle.specified'] != null) query.append("jobTitle.specified", String(args['jobTitle.specified'])) if (args['lastName.contains'] != null) query.append("lastName.contains", String(args['lastName.contains'])) if (args['lastName.doesNotContain'] != null) query.append("lastName.doesNotContain", String(args['lastName.doesNotContain'])) if (args['lastName.equals'] != null) query.append("lastName.equals", String(args['lastName.equals'])) for (const item of args['lastName.in'] ?? []) query.append("lastName.in", String(item)) if (args['lastName.notEquals'] != null) query.append("lastName.notEquals", String(args['lastName.notEquals'])) for (const item of args['lastName.notIn'] ?? []) query.append("lastName.notIn", String(item)) if (args['lastName.specified'] != null) query.append("lastName.specified", String(args['lastName.specified'])) if (args['maritalStatus.equals'] != null) query.append("maritalStatus.equals", String(args['maritalStatus.equals'])) for (const item of args['maritalStatus.in'] ?? []) query.append("maritalStatus.in", String(item)) if (args['maritalStatus.notEquals'] != null) query.append("maritalStatus.notEquals", String(args['maritalStatus.notEquals'])) for (const item of args['maritalStatus.notIn'] ?? []) query.append("maritalStatus.notIn", String(item)) if (args['maritalStatus.specified'] != null) query.append("maritalStatus.specified", String(args['maritalStatus.specified'])) if (args['mobile.contains'] != null) query.append("mobile.contains", String(args['mobile.contains'])) if (args['mobile.doesNotContain'] != null) query.append("mobile.doesNotContain", String(args['mobile.doesNotContain'])) if (args['mobile.equals'] != null) query.append("mobile.equals", String(args['mobile.equals'])) for (const item of args['mobile.in'] ?? []) query.append("mobile.in", String(item)) if (args['mobile.notEquals'] != null) query.append("mobile.notEquals", String(args['mobile.notEquals'])) for (const item of args['mobile.notIn'] ?? []) query.append("mobile.notIn", String(item)) if (args['mobile.specified'] != null) query.append("mobile.specified", String(args['mobile.specified'])) if (args['ostanId.equals'] != null) query.append("ostanId.equals", String(args['ostanId.equals'])) if (args['ostanId.greaterThan'] != null) query.append("ostanId.greaterThan", String(args['ostanId.greaterThan'])) if (args['ostanId.greaterThanOrEqual'] != null) query.append("ostanId.greaterThanOrEqual", String(args['ostanId.greaterThanOrEqual'])) for (const item of args['ostanId.in'] ?? []) query.append("ostanId.in", String(item)) if (args['ostanId.lessThan'] != null) query.append("ostanId.lessThan", String(args['ostanId.lessThan'])) if (args['ostanId.lessThanOrEqual'] != null) query.append("ostanId.lessThanOrEqual", String(args['ostanId.lessThanOrEqual'])) if (args['ostanId.notEquals'] != null) query.append("ostanId.notEquals", String(args['ostanId.notEquals'])) for (const item of args['ostanId.notIn'] ?? []) query.append("ostanId.notIn", String(item)) if (args['ostanId.specified'] != null) query.append("ostanId.specified", String(args['ostanId.specified'])) if (args.page != null) query.append("page", String(args.page)) if (args['plan.equals'] != null) query.append("plan.equals", String(args['plan.equals'])) for (const item of args['plan.in'] ?? []) query.append("plan.in", String(item)) if (args['plan.notEquals'] != null) query.append("plan.notEquals", String(args['plan.notEquals'])) for (const item of args['plan.notIn'] ?? []) query.append("plan.notIn", String(item)) if (args['plan.specified'] != null) query.append("plan.specified", String(args['plan.specified'])) if (args['referralCode.equals'] != null) query.append("referralCode.equals", String(args['referralCode.equals'])) if (args['referralCode.greaterThan'] != null) query.append("referralCode.greaterThan", String(args['referralCode.greaterThan'])) if (args['referralCode.greaterThanOrEqual'] != null) query.append("referralCode.greaterThanOrEqual", String(args['referralCode.greaterThanOrEqual'])) for (const item of args['referralCode.in'] ?? []) query.append("referralCode.in", String(item)) if (args['referralCode.lessThan'] != null) query.append("referralCode.lessThan", String(args['referralCode.lessThan'])) if (args['referralCode.lessThanOrEqual'] != null) query.append("referralCode.lessThanOrEqual", String(args['referralCode.lessThanOrEqual'])) if (args['referralCode.notEquals'] != null) query.append("referralCode.notEquals", String(args['referralCode.notEquals'])) for (const item of args['referralCode.notIn'] ?? []) query.append("referralCode.notIn", String(item)) if (args['referralCode.specified'] != null) query.append("referralCode.specified", String(args['referralCode.specified'])) if (args['referredCode.equals'] != null) query.append("referredCode.equals", String(args['referredCode.equals'])) if (args['referredCode.greaterThan'] != null) query.append("referredCode.greaterThan", String(args['referredCode.greaterThan'])) if (args['referredCode.greaterThanOrEqual'] != null) query.append("referredCode.greaterThanOrEqual", String(args['referredCode.greaterThanOrEqual'])) for (const item of args['referredCode.in'] ?? []) query.append("referredCode.in", String(item)) if (args['referredCode.lessThan'] != null) query.append("referredCode.lessThan", String(args['referredCode.lessThan'])) if (args['referredCode.lessThanOrEqual'] != null) query.append("referredCode.lessThanOrEqual", String(args['referredCode.lessThanOrEqual'])) if (args['referredCode.notEquals'] != null) query.append("referredCode.notEquals", String(args['referredCode.notEquals'])) for (const item of args['referredCode.notIn'] ?? []) query.append("referredCode.notIn", String(item)) if (args['referredCode.specified'] != null) query.append("referredCode.specified", String(args['referredCode.specified'])) if (args.size != null) query.append("size", String(args.size)) for (const item of args.sort ?? []) query.append("sort", String(item)) if (args['toDate.equals'] != null) query.append("toDate.equals", String(args['toDate.equals'])) if (args['toDate.greaterThan'] != null) query.append("toDate.greaterThan", String(args['toDate.greaterThan'])) if (args['toDate.greaterThanOrEqual'] != null) query.append("toDate.greaterThanOrEqual", String(args['toDate.greaterThanOrEqual'])) if (args['toDate.in[0].chronology.calendarType'] != null) query.append("toDate.in[0].chronology.calendarType", String(args['toDate.in[0].chronology.calendarType'])) if (args['toDate.in[0].chronology.id'] != null) query.append("toDate.in[0].chronology.id", String(args['toDate.in[0].chronology.id'])) if (args['toDate.in[0].dayOfMonth'] != null) query.append("toDate.in[0].dayOfMonth", String(args['toDate.in[0].dayOfMonth'])) if (args['toDate.in[0].dayOfWeek'] != null) query.append("toDate.in[0].dayOfWeek", String(args['toDate.in[0].dayOfWeek'])) if (args['toDate.in[0].dayOfYear'] != null) query.append("toDate.in[0].dayOfYear", String(args['toDate.in[0].dayOfYear'])) if (args['toDate.in[0].era'] != null) query.append("toDate.in[0].era", String(args['toDate.in[0].era'])) if (args['toDate.in[0].leapYear'] != null) query.append("toDate.in[0].leapYear", String(args['toDate.in[0].leapYear'])) if (args['toDate.in[0].month'] != null) query.append("toDate.in[0].month", String(args['toDate.in[0].month'])) if (args['toDate.in[0].monthValue'] != null) query.append("toDate.in[0].monthValue", String(args['toDate.in[0].monthValue'])) if (args['toDate.in[0].year'] != null) query.append("toDate.in[0].year", String(args['toDate.in[0].year'])) if (args['toDate.lessThan'] != null) query.append("toDate.lessThan", String(args['toDate.lessThan'])) if (args['toDate.lessThanOrEqual'] != null) query.append("toDate.lessThanOrEqual", String(args['toDate.lessThanOrEqual'])) if (args['toDate.notEquals'] != null) query.append("toDate.notEquals", String(args['toDate.notEquals'])) if (args['toDate.notIn[0].chronology.calendarType'] != null) query.append("toDate.notIn[0].chronology.calendarType", String(args['toDate.notIn[0].chronology.calendarType'])) if (args['toDate.notIn[0].chronology.id'] != null) query.append("toDate.notIn[0].chronology.id", String(args['toDate.notIn[0].chronology.id'])) if (args['toDate.notIn[0].dayOfMonth'] != null) query.append("toDate.notIn[0].dayOfMonth", String(args['toDate.notIn[0].dayOfMonth'])) if (args['toDate.notIn[0].dayOfWeek'] != null) query.append("toDate.notIn[0].dayOfWeek", String(args['toDate.notIn[0].dayOfWeek'])) if (args['toDate.notIn[0].dayOfYear'] != null) query.append("toDate.notIn[0].dayOfYear", String(args['toDate.notIn[0].dayOfYear'])) if (args['toDate.notIn[0].era'] != null) query.append("toDate.notIn[0].era", String(args['toDate.notIn[0].era'])) if (args['toDate.notIn[0].leapYear'] != null) query.append("toDate.notIn[0].leapYear", String(args['toDate.notIn[0].leapYear'])) if (args['toDate.notIn[0].month'] != null) query.append("toDate.notIn[0].month", String(args['toDate.notIn[0].month'])) if (args['toDate.notIn[0].monthValue'] != null) query.append("toDate.notIn[0].monthValue", String(args['toDate.notIn[0].monthValue'])) if (args['toDate.notIn[0].year'] != null) query.append("toDate.notIn[0].year", String(args['toDate.notIn[0].year'])) if (args['toDate.specified'] != null) query.append("toDate.specified", String(args['toDate.specified'])) const url = `${baseUrl.replace(/\/+$/, '')}/api/admin/profile${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };