@@ -62,13 +62,13 @@ actions:
6262 " x-codeSamples " :
6363 - " lang " : " typescript"
6464 " label " : " stackone_list_logs"
65- "source": "import { StackOne } from \"@stackone/stackone-client-ts\";\nimport {\n QueryParamInclude,\n StackoneListLogsQueryParamOrderBy,\n StackoneListLogsQueryParamOrderDirection,\n StackoneListLogsQueryParamRequestLogsOrderBy,\n StackoneListLogsQueryParamRequestLogsOrderDirection,\n} from \"@stackone/stackone-client-ts/sdk/models/operations\";\n\nconst stackOne = new StackOne({\n security: {\n username: \"\",\n password: \"\",\n },\n});\n\nasync function run() {\n const result = await stackOne.requestLogs.listLogs({\n orderBy: StackoneListLogsQueryParamOrderBy.Duration,\n orderDirection: StackoneListLogsQueryParamOrderDirection.Asc,\n include: QueryParamInclude.StepLogs,\n filter: {\n accountIds: \"45355976281015164504,45355976281015164505\",\n startDate: \"2020-01-01T00:00:00.000Z\",\n endDate: \"2020-01-01T00:00:00.000Z\",\n requestIds: \"adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c\",\n sourceTypes: \"DASHBOARD,SYNTHETIC_WEBHOOK\",\n httpMethods: \"GET,POST\",\n providers: \"ashby,greenhouse\",\n services: \"hris,ats\",\n resources: \"employees,users\",\n childResources: \"documents,time-off\",\n subResources: \"documents,employees\",\n actions: \"download,upload\",\n statusCodes: \"200,400\",\n success: true,\n orderBy: StackoneListLogsQueryParamRequestLogsOrderBy.Duration,\n orderDirection: StackoneListLogsQueryParamRequestLogsOrderDirection.Asc,\n },\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
65+ "source": "import { StackOne } from \"@stackone/stackone-client-ts\";\nimport {\n QueryParamInclude,\n QueryParamOrderBy,\n QueryParamOrderDirection,\n StackoneListLogsQueryParamOrderBy,\n StackoneListLogsQueryParamOrderDirection,\n} from \"@stackone/stackone-client-ts/sdk/models/operations\";\n\nconst stackOne = new StackOne({\n security: {\n username: \"\",\n password: \"\",\n },\n});\n\nasync function run() {\n const result = await stackOne.requestLogs.listLogs({\n orderBy: QueryParamOrderBy.Duration,\n orderDirection: QueryParamOrderDirection.Asc,\n include: QueryParamInclude.StepLogs,\n filter: {\n accountIds: \"45355976281015164504,45355976281015164505\",\n startDate: \"2020-01-01T00:00:00.000Z\",\n endDate: \"2020-01-01T00:00:00.000Z\",\n requestIds: \"adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c\",\n sourceTypes: \"DASHBOARD,SYNTHETIC_WEBHOOK\",\n httpMethods: \"GET,POST\",\n providers: \"ashby,greenhouse\",\n services: \"hris,ats\",\n resources: \"employees,users\",\n childResources: \"documents,time-off\",\n subResources: \"documents,employees\",\n actions: \"download,upload\",\n statusCodes: \"200,400\",\n success: true,\n orderBy: StackoneListLogsQueryParamOrderBy.Duration,\n orderDirection: StackoneListLogsQueryParamOrderDirection.Asc,\n },\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
6666 - target : $["paths"]["/requests/logs/steps"]["get"]
6767 update :
6868 " x-codeSamples " :
6969 - " lang " : " typescript"
7070 " label " : " stackone_list_step_logs"
71- "source": "import { StackOne } from \"@stackone/stackone-client-ts\";\nimport { OrderBy, OrderDirection, QueryParamOrderBy, QueryParamOrderDirection } from \"@stackone/stackone-client-ts/sdk/models/operations\";\n\nconst stackOne = new StackOne({\n security: {\n username: \"\",\n password: \"\",\n },\n});\n\nasync function run() {\n const result = await stackOne.requestLogs.listStepLogs({\n orderBy: OrderBy.EventDatetime,\n orderDirection: OrderDirection.Asc,\n filter: {\n accountIds: \"45355976281015164504,45355976281015164505\",\n startDate: \"2020-01-01T00:00:00.000Z\",\n endDate: \"2020-01-01T00:00:00.000Z\",\n requestIds: \"adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c\",\n httpMethods: \"GET,POST\",\n providers: \"ashby,greenhouse\",\n services: \"hris,ats\",\n resources: \"employees,users\",\n childResources: \"documents,time-off\",\n subResources: \"documents,employees\",\n actions: \"download,upload\",\n statusCodes: \"200,400\",\n success: true,\n orderBy: QueryParamOrderBy.Duration,\n orderDirection: QueryParamOrderDirection.Asc,\n },\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
71+ "source": "import { StackOne } from \"@stackone/stackone-client-ts\";\nimport { OrderBy, OrderDirection } from \"@stackone/stackone-client-ts/sdk/models/operations\";\n\nconst stackOne = new StackOne({\n security: {\n username: \"\",\n password: \"\",\n },\n});\n\nasync function run() {\n const result = await stackOne.requestLogs.listStepLogs({\n orderBy: OrderBy.EventDatetime,\n orderDirection: OrderDirection.Asc,\n filter: {\n accountIds: \"45355976281015164504,45355976281015164505\",\n startDate: \"2020-01-01T00:00:00.000Z\",\n endDate: \"2020-01-01T00:00:00.000Z\",\n requestIds: \"adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c\",\n httpMethods: \"GET,POST\",\n providers: \"ashby,greenhouse\",\n services: \"hris,ats\",\n resources: \"employees,users\",\n childResources: \"documents,time-off\",\n subResources: \"documents,employees\",\n actions: \"download,upload\",\n statusCodes: \"200,400\",\n success: true,\n },\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
7272 - target : $["paths"]["/requests/logs/{id}"]["get"]
7373 update :
7474 " x-codeSamples " :
@@ -650,7 +650,7 @@ actions:
650650 " x-codeSamples " :
651651 - " lang " : " typescript"
652652 " label " : " hris_list_employee_custom_field_definitions"
653- " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.listEmployeeCustomFieldDefinitions({\n fields: \" id,remote_id,name,description,type,options\" ,\n filter: {\n updatedAfter: \" 2020-01-01T00:00:00.000Z\" ,\n },\n xAccountId: \" <id>\" ,\n });\n\n // Handle the result \n console.log(result); \n }\n\n run();"
653+ " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.listEmployeeCustomFieldDefinitions({\n fields: \" id,remote_id,name,description,type,options\" ,\n filter: {\n updatedAfter: \" 2020-01-01T00:00:00.000Z\" ,\n },\n xAccountId: \" <id>\" ,\n });\n\n for await (const page of result) { \n // Handle the page \n console.log(page); \n } \n }\n\n run();"
654654 - target : $["paths"]["/unified/hris/custom_field_definitions/employees/{id}"]["get"]
655655 update :
656656 " x-codeSamples " :
0 commit comments