@xxmachina/components 19.0.0-preview.29 → 19.0.0-preview.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/features/query/query.feature.d.ts +2 -2
- package/fesm2022/xxmachina-components-features-command.mjs +3 -2
- package/fesm2022/xxmachina-components-features-command.mjs.map +1 -1
- package/fesm2022/xxmachina-components-features-query.mjs +3 -2
- package/fesm2022/xxmachina-components-features-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components-molecules-daily-cell.mjs +1 -1
- package/fesm2022/xxmachina-components-molecules-daily-cell.mjs.map +1 -1
- package/fesm2022/xxmachina-components-molecules-weekly-header.mjs +2 -2
- package/fesm2022/xxmachina-components-organisms-calendar-section.mjs +2 -2
- package/fesm2022/xxmachina-components-organisms-calendar-section.mjs.map +1 -1
- package/fesm2022/xxmachina-components-pages-command.mjs +6 -22
- package/fesm2022/xxmachina-components-pages-command.mjs.map +1 -1
- package/fesm2022/xxmachina-components-pages-query.mjs +3 -7
- package/fesm2022/xxmachina-components-pages-query.mjs.map +1 -1
- package/fesm2022/{xxmachina-components-routes-commands-command.routes-CSwIdXZg.mjs → xxmachina-components-routes-commands-command.routes-CeRVzy3Z.mjs} +11 -4
- package/fesm2022/xxmachina-components-routes-commands-command.routes-CeRVzy3Z.mjs.map +1 -0
- package/fesm2022/{xxmachina-components-routes-commands-pages.routes-j2xVop4W.mjs → xxmachina-components-routes-commands-pages.routes-Cm6Yd40h.mjs} +4 -4
- package/fesm2022/xxmachina-components-routes-commands-pages.routes-Cm6Yd40h.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-commands.mjs +3 -5
- package/fesm2022/xxmachina-components-routes-commands.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes-pages.mjs +1 -3
- package/fesm2022/xxmachina-components-routes-pages.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes-queries-pages.routes-BfWsTCij.mjs +9 -0
- package/fesm2022/xxmachina-components-routes-queries-pages.routes-BfWsTCij.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-queries.mjs +4 -6
- package/fesm2022/xxmachina-components-routes-queries.mjs.map +1 -1
- package/fesm2022/{xxmachina-components-routes-query-pages.routes-CxTbOJDQ.mjs → xxmachina-components-routes-query-pages.routes-H2vrF7kQ.mjs} +9 -9
- package/fesm2022/xxmachina-components-routes-query-pages.routes-H2vrF7kQ.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-query.mjs +2 -4
- package/fesm2022/xxmachina-components-routes-query.mjs.map +1 -1
- package/fesm2022/{xxmachina-components-routes-resources-pages.routes-CzjQOxwT.mjs → xxmachina-components-routes-resources-pages.routes-BSjrrV1g.mjs} +4 -4
- package/fesm2022/xxmachina-components-routes-resources-pages.routes-BSjrrV1g.mjs.map +1 -0
- package/fesm2022/{xxmachina-components-routes-resources-resource.routes-C5KpB3KM.mjs → xxmachina-components-routes-resources-resource.routes-DzGgwitX.mjs} +3 -3
- package/fesm2022/xxmachina-components-routes-resources-resource.routes-DzGgwitX.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-resources.mjs +5 -7
- package/fesm2022/xxmachina-components-routes-resources.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes.mjs +4 -4
- package/fesm2022/xxmachina-components-routes.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-assistant.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-calendar.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-command.mjs +6 -4
- package/fesm2022/xxmachina-components-services-command.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-contract.mjs +1 -1
- package/fesm2022/xxmachina-components-services-contract.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-forms-schedule.mjs +1 -1
- package/fesm2022/xxmachina-components-services-forms-schedule.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-invoice.mjs +1 -1
- package/fesm2022/xxmachina-components-services-invoice.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-link.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-openapi.mjs +1 -1
- package/fesm2022/xxmachina-components-services-openapi.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-order.mjs +1 -1
- package/fesm2022/xxmachina-components-services-order.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-partner.mjs +1 -1
- package/fesm2022/xxmachina-components-services-partner.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-query-config.mjs +18 -17
- package/fesm2022/xxmachina-components-services-query-config.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-query.mjs +2 -12
- package/fesm2022/xxmachina-components-services-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-schedule.mjs +1 -1
- package/fesm2022/xxmachina-components-services-schedule.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-thread.mjs +1 -1
- package/fesm2022/xxmachina-components-services-thread.mjs.map +1 -1
- package/fesm2022/xxmachina-components-validators-query.mjs +3 -6
- package/fesm2022/xxmachina-components-validators-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components.mjs +1 -1
- package/fesm2022/xxmachina-components.mjs.map +1 -1
- package/molecules/daily-cell/daily-cell.molecule.d.ts +1 -1
- package/organisms/calendar-section/calendar-section.organism.d.ts +1 -1
- package/package.json +1 -1
- package/pages/command/command.page.d.ts +1 -3
- package/routes/commands/commands.routes.d.ts +2 -1
- package/routes/commands/index.d.ts +1 -1
- package/routes/commands/pages/command/command.routes.d.ts +2 -2
- package/routes/commands/pages/pages.routes.d.ts +2 -1
- package/routes/pages/index.d.ts +1 -1
- package/routes/pages/pages.routes.d.ts +2 -1
- package/routes/queries/index.d.ts +1 -1
- package/routes/queries/pages/pages.routes.d.ts +2 -1
- package/routes/queries/queries.routes.d.ts +2 -1
- package/routes/query/index.d.ts +1 -1
- package/routes/query/pages/pages.routes.d.ts +2 -1
- package/routes/query/query.routes.d.ts +2 -1
- package/routes/resources/index.d.ts +1 -1
- package/routes/resources/pages/pages.routes.d.ts +2 -1
- package/routes/resources/pages/resource/resource.routes.d.ts +2 -1
- package/routes/resources/resources.routes.d.ts +2 -1
- package/services/assistant/assistant.service.d.ts +1 -1
- package/services/calendar/calendar.service.d.ts +1 -1
- package/services/command/command.service.d.ts +2 -2
- package/services/forms/schedule/schedule.service.d.ts +1 -1
- package/services/invoice/invoice.service.d.ts +1 -1
- package/services/link/link.service.d.ts +1 -1
- package/services/openapi/openapi.service.d.ts +1 -1
- package/services/order/order.service.d.ts +1 -1
- package/services/query-config/query-config.service.d.ts +19 -7
- package/services/schedule/schedule.service.d.ts +1 -1
- package/fesm2022/xxmachina-components-routes-commands-command.routes-CSwIdXZg.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-commands-pages.routes-j2xVop4W.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-queries-pages.routes-CfrglCIL.mjs +0 -9
- package/fesm2022/xxmachina-components-routes-queries-pages.routes-CfrglCIL.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-query-pages.routes-CxTbOJDQ.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-resources-pages.routes-CzjQOxwT.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-resources-resource.routes-C5KpB3KM.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-services-query.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/services/query/query.service.ts","../../../../../packages/@xxmachina/components/src/lib/services/query/xxmachina-components-services-query.ts"],"sourcesContent":["import { HttpClient } from \"@angular/common/http\";\nimport { inject, Injectable } from \"@angular/core\";\nimport { map, lastValueFrom, switchMap, tap
|
|
1
|
+
{"version":3,"file":"xxmachina-components-services-query.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/services/query/query.service.ts","../../../../../packages/@xxmachina/components/src/lib/services/query/xxmachina-components-services-query.ts"],"sourcesContent":["import { HttpClient } from \"@angular/common/http\";\nimport { inject, Injectable } from \"@angular/core\";\nimport { map, lastValueFrom, switchMap, tap } from \"rxjs\";\nimport { gql } from 'apollo-angular';\nimport { getIntrospectionQuery } from \"graphql\";\nimport { Query, QueryHelper } from \"@xxmachina/common/domain/models\";\nimport { QueryConfigService } from \"@xxmachina/components/services/query-config\";\nimport { ApolloMultiService } from \"@nx-ddd/hasura\";\nimport { Observable } from \"rxjs\";\n\n@Injectable({providedIn: 'root'})\nexport class QueryService {\n protected readonly http = inject(HttpClient);\n readonly config = inject(QueryConfigService);\n readonly apolloMulti = inject(ApolloMultiService);\n\n execute(\n query: string,\n options: {\n endpoint?: string,\n headers?: Record<string, string>,\n } = {\n endpoint: '',\n headers: {\n 'content-type': 'application/json',\n }\n },\n ) {\n return this.config.resolve(options).pipe(\n switchMap(({endpoint, headers}) => this.http.post(endpoint, { query }, { headers }))\n );\n }\n\n getSchema(endpoint: string, options: {\n headers?: Record<string, string>,\n } = {\n headers: {\n 'content-type': 'application/json',\n }\n }) {\n return this.execute(getIntrospectionQuery(), {...options, endpoint});\n }\n\n subscribeSchema(endpoint: string, options: {\n headers?: Record<string, string>,\n }) {\n return this.subscribe(getIntrospectionQuery(), {\n headers: options.headers,\n endpoint\n }, (result) => result);\n }\n\n subscribeQuery(_query: Pick<Query, 'graphql'>): Observable<Record<string, any>> {\n return this.config.resolve(_query).pipe(\n switchMap((query) => {\n const client = this.apolloMulti.getClient(query.graphql.endpoint, () => this.config.resolve(_query.graphql.headers));\n return client.subscribe<Record<string, any>>({\n query: gql`${query.graphql.query}`,\n variables: query.graphql.variables,\n }).pipe(\n tap((result) => console.debug('[QueryService] result:', result)),\n map((result) => QueryHelper.parseResult(result as any)),\n )}\n ),\n );\n }\n\n subscribe(\n query: string,\n {\n endpoint,\n headers = { 'content-type': 'application/json' },\n variables = {},\n }: {\n endpoint?: string,\n headers?: Record<string, string>,\n variables?: Record<string, any>,\n } = { },\n transformer = (result: any) => QueryHelper.parseResult(result),\n ) {\n if (!endpoint) {\n throw new Error(`endpoint is required ${query}`);\n }\n return this.config.resolve({query, endpoint, variables}).pipe(\n switchMap(({query, endpoint, variables}) => {\n const client = this.apolloMulti.getClient(endpoint, () => this.config.resolve(headers));\n return client.subscribe<Record<string, any>>({\n query: gql`${query}`,\n variables: variables,\n fetchPolicy: 'network-only',\n }).pipe(\n tap((result) => console.debug('[QueryService] result:', result)),\n map(transformer),\n )}\n ),\n );\n }\n \n async generate(\n instructions: string,\n options: {\n baseUrl: string\n } = {\n baseUrl: '',\n },\n ) {\n const endpoint = `${options.baseUrl}/generate`;\n return lastValueFrom(this.http.post<{query: string}>(endpoint, { instructions }));\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAWa,YAAY,CAAA;AADzB,IAAA,WAAA,GAAA;AAEqB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;AACnC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,kBAAkB,CAAC;AACnC,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC;AA+FlD;IA7FC,OAAO,CACL,KAAa,EACb,OAGI,GAAA;AACF,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,OAAO,EAAE;AACP,YAAA,cAAc,EAAE,kBAAkB;AACnC;AACF,KAAA,EAAA;AAED,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CACtC,SAAS,CAAC,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAC,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,CACrF;;IAGH,SAAS,CAAC,QAAgB,EAAE,OAExB,GAAA;AACF,QAAA,OAAO,EAAE;AACP,YAAA,cAAc,EAAE,kBAAkB;AACnC;AACF,KAAA,EAAA;AACC,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,EA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AA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cADA,MAAM,EAAA,CAAA,CAAA;;2FAClB,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;ACVhC;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { inject, Injectable } from '@angular/core';
|
|
4
|
-
import { Schedule } from '@xxmachina/common/domain/models';
|
|
4
|
+
import { Schedule } from '@xxmachina/common/domain/models/scheduler';
|
|
5
5
|
import { map, lastValueFrom } from 'rxjs';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-services-schedule.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/services/schedule/schedule.service.ts","../../../../../packages/@xxmachina/components/src/lib/services/schedule/xxmachina-components-services-schedule.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { Schedule } from '@xxmachina/common/domain/models';\nimport { Observable, lastValueFrom, map } from 'rxjs';\nimport dayjs from 'dayjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ScheduleService {\n http = inject(HttpClient);\n\n list(): Observable<Schedule[]> {\n return this.http.get<Schedule[]>('/api/calendars/primary/schedules').pipe(\n map(schedules => schedules.map(schedule => Schedule.from({\n ...schedule,\n startAt: dayjs(schedule.startAt),\n endAt: dayjs(schedule.endAt),\n }))),\n );\n }\n\n create(schedule: Schedule): Promise<Schedule> {\n return lastValueFrom(this.http.post<any>('/api/calendars/primary/schedules', schedule).pipe(\n map(schedule => Schedule.from({\n ...schedule,\n startAt: dayjs(schedule.startAt),\n endAt: dayjs(schedule.endAt),\n })),\n ));\n }\n\n update(schedule: Partial<Schedule> & {id: string, calendarId: string}): Promise<void> {\n return lastValueFrom(this.http.patch<void>(`/api/calendars/${schedule.calendarId}/schedules/${schedule.id}`, schedule));\n }\n\n delete(schedule: Partial<Schedule> & {id: string, calendarId: string}): Promise<void> {\n return lastValueFrom(this.http.delete<void>(`/api/calendars/${schedule.calendarId}/schedules/${schedule.id}`));\n }\n\n makeConference(schedule: Partial<Schedule> & {id: string, calendarId: string}): Promise<Schedule> {\n return lastValueFrom(this.http.patch<Schedule>(`/api/calendars/${schedule.calendarId}/schedules/${schedule.id}/make-conference`, {}));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MASa,eAAe,CAAA;AAH5B,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;AAiC1B;IA/BC,IAAI,GAAA;AACF,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAa,kCAAkC,CAAC,CAAC,IAAI,CACvE,GAAG,CAAC,SAAS,IAAI,SAAS,CAAC,GAAG,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,CAAC;AACvD,YAAA,GAAG,QAAQ;AACX,YAAA,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC;AAChC,YAAA,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;SAC7B,CAAC,CAAC,CAAC,CACL;;AAGH,IAAA,MAAM,CAAC,QAAkB,EAAA;QACvB,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAM,kCAAkC,EAAE,QAAQ,CAAC,CAAC,IAAI,CACzF,GAAG,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,CAAC;AAC5B,YAAA,GAAG,QAAQ;AACX,YAAA,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC;AAChC,YAAA,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;SAC7B,CAAC,CAAC,CACJ,CAAC;;AAGJ,IAAA,MAAM,CAAC,QAA8D,EAAA;QACnE,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAO,CAAkB,eAAA,EAAA,QAAQ,CAAC,UAAU,CAAA,WAAA,EAAc,QAAQ,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAC;;AAGzH,IAAA,MAAM,CAAC,QAA8D,EAAA;AACnE,QAAA,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAO,CAAA,eAAA,EAAkB,QAAQ,CAAC,UAAU,cAAc,QAAQ,CAAC,EAAE,CAAE,CAAA,CAAC,CAAC;;AAGhH,IAAA,cAAc,CAAC,QAA8D,EAAA;QAC3E,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAW,CAAkB,eAAA,EAAA,QAAQ,CAAC,UAAU,CAAA,WAAA,EAAc,QAAQ,CAAC,EAAE,kBAAkB,EAAE,EAAE,CAAC,CAAC;;8GAhC5H,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cAFd,MAAM,EAAA,CAAA,CAAA;;2FAEP,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACRD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"xxmachina-components-services-schedule.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/services/schedule/schedule.service.ts","../../../../../packages/@xxmachina/components/src/lib/services/schedule/xxmachina-components-services-schedule.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { Schedule } from '@xxmachina/common/domain/models/scheduler';\nimport { Observable, lastValueFrom, map } from 'rxjs';\nimport dayjs from 'dayjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ScheduleService {\n http = inject(HttpClient);\n\n list(): Observable<Schedule[]> {\n return this.http.get<Schedule[]>('/api/calendars/primary/schedules').pipe(\n map(schedules => schedules.map(schedule => Schedule.from({\n ...schedule,\n startAt: dayjs(schedule.startAt),\n endAt: dayjs(schedule.endAt),\n }))),\n );\n }\n\n create(schedule: Schedule): Promise<Schedule> {\n return lastValueFrom(this.http.post<any>('/api/calendars/primary/schedules', schedule).pipe(\n map(schedule => Schedule.from({\n ...schedule,\n startAt: dayjs(schedule.startAt),\n endAt: dayjs(schedule.endAt),\n })),\n ));\n }\n\n update(schedule: Partial<Schedule> & {id: string, calendarId: string}): Promise<void> {\n return lastValueFrom(this.http.patch<void>(`/api/calendars/${schedule.calendarId}/schedules/${schedule.id}`, schedule));\n }\n\n delete(schedule: Partial<Schedule> & {id: string, calendarId: string}): Promise<void> {\n return lastValueFrom(this.http.delete<void>(`/api/calendars/${schedule.calendarId}/schedules/${schedule.id}`));\n }\n\n makeConference(schedule: Partial<Schedule> & {id: string, calendarId: string}): Promise<Schedule> {\n return lastValueFrom(this.http.patch<Schedule>(`/api/calendars/${schedule.calendarId}/schedules/${schedule.id}/make-conference`, {}));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MASa,eAAe,CAAA;AAH5B,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;AAiC1B;IA/BC,IAAI,GAAA;AACF,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAa,kCAAkC,CAAC,CAAC,IAAI,CACvE,GAAG,CAAC,SAAS,IAAI,SAAS,CAAC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AA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cAFd,MAAM,EAAA,CAAA,CAAA;;2FAEP,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { inject, Injectable } from '@angular/core';
|
|
4
|
-
import { message } from '@nx-ddd/common';
|
|
4
|
+
import { message } from '@nx-ddd/common/utilities/message';
|
|
5
5
|
import { lastValueFrom, ReplaySubject, interval, startWith, takeUntil, switchMap, catchError, NEVER, map } from 'rxjs';
|
|
6
6
|
|
|
7
7
|
class ThreadService {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-services-thread.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/services/thread/thread.service.ts","../../../../../packages/@xxmachina/components/src/lib/services/thread/xxmachina-components-services-thread.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { message } from '@nx-ddd/common';\nimport { NEVER, Observable, ReplaySubject, catchError, interval, lastValueFrom, map, startWith, switchMap, takeUntil } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ThreadService {\n readonly http = inject(HttpClient);\n\n getThread(id: string) {\n return this.http.get(`/api/threads/${id}`);\n }\n\n create() {\n return lastValueFrom(this.http.post<{id: string}>('/api/threads', {}));\n }\n\n listMessages(threadId: string) {\n return this.http.get<any[]>(`/api/threads/${threadId}/messages`);\n }\n\n createMessage(message: {threadId: string, role: 'user', content: string}) {\n return lastValueFrom(this.http.post(`/api/threads/${message.threadId}/messages`, message));\n }\n\n run(assistantId: string, threadId: string) {\n return lastValueFrom(this.http.post<{id: string}>(`/api/threads/${threadId}/runs`, {\n assistantId,\n instructions: message``,\n tools: [],\n }));\n }\n\n submitToolOutputs(threadId: string, runId: string, toolOutputs: any[]) {\n return lastValueFrom(this.http.post<any>(`/api/threads/${threadId}/runs/${runId}/submit_tool_outputs`, {\n toolOutputs,\n }));\n }\n\n retrieveRun(threadId: string, runId: string) {\n return lastValueFrom(this.http.get<any>(`/api/threads/${threadId}/runs/${runId}`));\n }\n\n retrieveRunSteps(threadId: string, runId: string) {\n return this.http.get<any>(`/api/threads/${threadId}/runs/${runId}/steps`);\n }\n\n observeSteps(threadId: string, runId: string): Observable<'dealing' | 'message_creating' | 'function_calling' | 'done'> {\n const stop$ = new ReplaySubject<void>();\n return interval(1000).pipe(\n startWith(null),\n takeUntil(stop$),\n switchMap(() => this.retrieveRunSteps(threadId, runId).pipe(\n catchError((error) => (console.error(error), NEVER)),\n )),\n map(steps => {\n if (steps.some(step => step.status === 'in_progress')) {\n const inProgress = steps.find(step => step.status === 'in_progress');\n switch (inProgress.type) {\n case 'message_creation': return 'message_creating';\n default: return 'function_calling'\n }\n }\n \n if (steps.find(step => step.type === 'message_creation')?.status === 'completed') {\n stop$.next();\n return 'done';\n }\n return 'dealing';\n \n })\n );\n }\n\n async watchSteps(\n threadId: string,\n runId: string,\n onStatusChanged: (status: string) => void,\n ) {\n while (true) {\n const steps = await lastValueFrom(this.retrieveRunSteps(threadId, runId));\n console.debug('steps:', steps);\n if (steps.some(step => step.status === 'in_progress')) {\n const inProgress = steps.find(step => step.status === 'in_progress');\n switch (inProgress.type) {\n case 'message_creation': {\n onStatusChanged('message_creating');\n break;\n }\n default: {\n onStatusChanged('function_calling');\n break;\n }\n }\n }\n\n onStatusChanged('dealing');\n\n if (steps.find(step => step.type === 'message_creation')?.status === 'completed') {\n onStatusChanged('done');\n break;\n }\n\n await new Promise(resolve => setTimeout(resolve, 1000));\n }\n }\n\n async watch(\n threadId: string,\n runId: string,\n onFunctionCalled: (toolCall: any) => Promise<object> | object,\n onCompleted: () => void,\n onError: (error: any) => void,\n ) {\n while (true) {\n const run = await this.retrieveRun(threadId, runId);\n switch (run.status) {\n case 'requires_action': {\n try {\n const toolCalls = run.required_action.submit_tool_outputs.tool_calls;\n const result = await onFunctionCalled(toolCalls[0]);\n this.submitToolOutputs(threadId, runId, [{ toolCallId: toolCalls[0].id, output: JSON.stringify(result) }]);\n } catch (error) {\n onError(error);\n // this.snackBar.open('エラーが発生しました。更新して再度、お試しください。');\n }\n }\n case 'completed': {\n console.debug(`run ${runId} completed`);\n onCompleted();\n // this$.next();\n return;\n }\n case 'failed': {\n console.debug(`run ${runId} failed`);\n return;\n }\n }\n await new Promise(resolve => setTimeout(resolve, 1000));\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAQa,aAAa,CAAA;AAH1B,IAAA,WAAA,GAAA;AAIW,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;AAsInC;AApIC,IAAA,SAAS,CAAC,EAAU,EAAA;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAgB,aAAA,EAAA,EAAE,CAAE,CAAA,CAAC;;IAG5C,MAAM,GAAA;AACJ,QAAA,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAe,cAAc,EAAE,EAAE,CAAC,CAAC;;AAGxE,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAQ,CAAgB,aAAA,EAAA,QAAQ,CAAW,SAAA,CAAA,CAAC;;AAGlE,IAAA,aAAa,CAAC,OAA0D,EAAA;AACtE,QAAA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;gBAEF,KAAK,QAAQ,EAAE;AACb,oBAAA,OAAO,CAAC,KAAK,CAAC,OAAO,KAAK,CAAA,OAAA,CAAS,CAAC;oBACpC;;;AAGJ,YAAA,MAAM,IAAI,OAAO,CAAC,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;;;8GApIhD,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAb,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cAFZ,MAAM,EAAA,CAAA,CAAA;;2FAEP,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACPD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"xxmachina-components-services-thread.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/services/thread/thread.service.ts","../../../../../packages/@xxmachina/components/src/lib/services/thread/xxmachina-components-services-thread.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { message } from '@nx-ddd/common/utilities/message';\nimport { NEVER, Observable, ReplaySubject, catchError, interval, lastValueFrom, map, startWith, switchMap, takeUntil } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ThreadService {\n readonly http = inject(HttpClient);\n\n getThread(id: string) {\n return this.http.get(`/api/threads/${id}`);\n }\n\n create() {\n return lastValueFrom(this.http.post<{id: string}>('/api/threads', {}));\n }\n\n listMessages(threadId: string) {\n return this.http.get<any[]>(`/api/threads/${threadId}/messages`);\n }\n\n createMessage(message: {threadId: string, role: 'user', content: string}) {\n return lastValueFrom(this.http.post(`/api/threads/${message.threadId}/messages`, message));\n }\n\n run(assistantId: string, threadId: string) {\n return lastValueFrom(this.http.post<{id: string}>(`/api/threads/${threadId}/runs`, {\n assistantId,\n instructions: message``,\n tools: [],\n }));\n }\n\n submitToolOutputs(threadId: string, runId: string, toolOutputs: any[]) {\n return lastValueFrom(this.http.post<any>(`/api/threads/${threadId}/runs/${runId}/submit_tool_outputs`, {\n toolOutputs,\n }));\n }\n\n retrieveRun(threadId: string, runId: string) {\n return lastValueFrom(this.http.get<any>(`/api/threads/${threadId}/runs/${runId}`));\n }\n\n retrieveRunSteps(threadId: string, runId: string) {\n return this.http.get<any>(`/api/threads/${threadId}/runs/${runId}/steps`);\n }\n\n observeSteps(threadId: string, runId: string): Observable<'dealing' | 'message_creating' | 'function_calling' | 'done'> {\n const stop$ = new ReplaySubject<void>();\n return interval(1000).pipe(\n startWith(null),\n takeUntil(stop$),\n switchMap(() => this.retrieveRunSteps(threadId, runId).pipe(\n catchError((error) => (console.error(error), NEVER)),\n )),\n map(steps => {\n if (steps.some(step => step.status === 'in_progress')) {\n const inProgress = steps.find(step => step.status === 'in_progress');\n switch (inProgress.type) {\n case 'message_creation': return 'message_creating';\n default: return 'function_calling'\n }\n }\n \n if (steps.find(step => step.type === 'message_creation')?.status === 'completed') {\n stop$.next();\n return 'done';\n }\n return 'dealing';\n \n })\n );\n }\n\n async watchSteps(\n threadId: string,\n runId: string,\n onStatusChanged: (status: string) => void,\n ) {\n while (true) {\n const steps = await lastValueFrom(this.retrieveRunSteps(threadId, runId));\n console.debug('steps:', steps);\n if (steps.some(step => step.status === 'in_progress')) {\n const inProgress = steps.find(step => step.status === 'in_progress');\n switch (inProgress.type) {\n case 'message_creation': {\n onStatusChanged('message_creating');\n break;\n }\n default: {\n onStatusChanged('function_calling');\n break;\n }\n }\n }\n\n onStatusChanged('dealing');\n\n if (steps.find(step => step.type === 'message_creation')?.status === 'completed') {\n onStatusChanged('done');\n break;\n }\n\n await new Promise(resolve => setTimeout(resolve, 1000));\n }\n }\n\n async watch(\n threadId: string,\n runId: string,\n onFunctionCalled: (toolCall: any) => Promise<object> | object,\n onCompleted: () => void,\n onError: (error: any) => void,\n ) {\n while (true) {\n const run = await this.retrieveRun(threadId, runId);\n switch (run.status) {\n case 'requires_action': {\n try {\n const toolCalls = run.required_action.submit_tool_outputs.tool_calls;\n const result = await onFunctionCalled(toolCalls[0]);\n this.submitToolOutputs(threadId, runId, [{ toolCallId: toolCalls[0].id, output: JSON.stringify(result) }]);\n } catch (error) {\n onError(error);\n // this.snackBar.open('エラーが発生しました。更新して再度、お試しください。');\n }\n }\n case 'completed': {\n console.debug(`run ${runId} completed`);\n onCompleted();\n // this$.next();\n return;\n }\n case 'failed': {\n console.debug(`run ${runId} failed`);\n return;\n }\n }\n await new Promise(resolve => setTimeout(resolve, 1000));\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAQa,aAAa,CAAA;AAH1B,IAAA,WAAA,GAAA;AAIW,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;AAsInC;AApIC,IAAA,SAAS,CAAC,EAAU,EAAA;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAgB,aAAA,EAAA,EAAE,CAAE,CAAA,CAAC;;IAG5C,MAAM,GAAA;AACJ,QAAA,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAe,cAAc,EAAE,EAAE,CAAC,CAAC;;AAGxE,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAQ,CAAgB,aAAA,EAAA,QAAQ,CAAW,SAAA,CAAA,CAAC;;AAGlE,IAAA,aAAa,CAAC,OAA0D,EAAA;AACtE,QAAA,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAgB,aAAA,EAAA,OAAO,CAAC,QAAQ,CAAA,SAAA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C;;;AAGJ,YAAA,MAAM,IAAI,OAAO,CAAC,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;;;8GApIhD,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAb,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cAFZ,MAAM,EAAA,CAAA,CAAA;;2FAEP,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -4,21 +4,18 @@ import { AuthService } from '@xxmachina/common/auth';
|
|
|
4
4
|
import { QueryHelper } from '@xxmachina/common/domain/models';
|
|
5
5
|
import { QueryService } from '@xxmachina/components/services/query';
|
|
6
6
|
import { isEqual } from 'lodash-es';
|
|
7
|
-
import { ReplaySubject, distinctUntilChanged, filter,
|
|
7
|
+
import { ReplaySubject, distinctUntilChanged, filter, switchMap, tap, shareReplay, combineLatest, startWith } from 'rxjs';
|
|
8
8
|
|
|
9
9
|
class QueryValidators {
|
|
10
10
|
static graphql() {
|
|
11
11
|
const service = inject(QueryService);
|
|
12
12
|
const auth = inject(AuthService);
|
|
13
13
|
const params$ = new ReplaySubject(1);
|
|
14
|
-
const result$ = params$.pipe(distinctUntilChanged((a, b) => isEqual(a, b)), filter(({ endpoint }) => !!endpoint),
|
|
15
|
-
console.debug('[QueryValidators] endpoint:', endpoint);
|
|
16
|
-
console.debug('[QueryValidators] headersJson:', headersJson);
|
|
17
|
-
}), switchMap(({ endpoint, headersJson }) => {
|
|
14
|
+
const result$ = params$.pipe(distinctUntilChanged((a, b) => isEqual(a, b)), filter(({ endpoint }) => !!endpoint), switchMap(({ endpoint, headersJson }) => {
|
|
18
15
|
return service.subscribeSchema(endpoint, {
|
|
19
16
|
headers: QueryHelper.tryParseJson(headersJson),
|
|
20
17
|
});
|
|
21
|
-
}), tap((result) => console.debug('
|
|
18
|
+
}), tap((result) => console.debug('QueryValidators.graphql.call', result)), shareReplay(1), takeUntilDestroyed());
|
|
22
19
|
return (formGroup) => {
|
|
23
20
|
return combineLatest({
|
|
24
21
|
accessToken: auth.accessToken$,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-validators-query.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/validators/query/query.validators.ts","../../../../../packages/@xxmachina/components/src/lib/validators/query/xxmachina-components-validators-query.ts"],"sourcesContent":["import { inject } from \"@angular/core\";\nimport { takeUntilDestroyed } from \"@angular/core/rxjs-interop\";\nimport { AsyncValidatorFn, FormControl, FormGroup } from \"@angular/forms\";\nimport { AuthService } from \"@xxmachina/common/auth\";\nimport { QueryHelper } from \"@xxmachina/common/domain/models\";\nimport { QueryService } from \"@xxmachina/components/services/query\";\nimport { isEqual } from \"lodash-es\";\nimport { combineLatest, distinctUntilChanged, filter, map, ReplaySubject, shareReplay, startWith, switchMap, tap } from \"rxjs\";\n\nexport class QueryValidators {\n static graphql(): AsyncValidatorFn {\n const service = inject(QueryService);\n const auth = inject(AuthService);\n const params$ = new ReplaySubject<{endpoint: string, headersJson: string}>(1);\n const result$ = params$.pipe(\n distinctUntilChanged((a, b) => isEqual(a, b)),\n filter(({endpoint}) => !!endpoint),\n
|
|
1
|
+
{"version":3,"file":"xxmachina-components-validators-query.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/validators/query/query.validators.ts","../../../../../packages/@xxmachina/components/src/lib/validators/query/xxmachina-components-validators-query.ts"],"sourcesContent":["import { inject } from \"@angular/core\";\nimport { takeUntilDestroyed } from \"@angular/core/rxjs-interop\";\nimport { AsyncValidatorFn, FormControl, FormGroup } from \"@angular/forms\";\nimport { AuthService } from \"@xxmachina/common/auth\";\nimport { QueryHelper } from \"@xxmachina/common/domain/models\";\nimport { QueryService } from \"@xxmachina/components/services/query\";\nimport { isEqual } from \"lodash-es\";\nimport { combineLatest, distinctUntilChanged, filter, map, ReplaySubject, shareReplay, startWith, switchMap, tap } from \"rxjs\";\n\nexport class QueryValidators {\n static graphql(): AsyncValidatorFn {\n const service = inject(QueryService);\n const auth = inject(AuthService);\n const params$ = new ReplaySubject<{endpoint: string, headersJson: string}>(1);\n const result$ = params$.pipe(\n distinctUntilChanged((a, b) => isEqual(a, b)),\n filter(({endpoint}) => !!endpoint),\n switchMap(({ endpoint, headersJson}) => {\n return service.subscribeSchema(endpoint, {\n headers: QueryHelper.tryParseJson(headersJson),\n })\n }),\n tap((result) => console.debug('QueryValidators.graphql.call', result)),\n shareReplay(1),\n takeUntilDestroyed(),\n );\n\n return (formGroup: FormGroup<{\n endpoint: FormControl<string>,\n headersJson: FormControl<string>,\n }>) => {\n return combineLatest({\n accessToken: auth.accessToken$,\n value: formGroup.valueChanges.pipe(startWith(formGroup.value)),\n }).pipe(\n switchMap(({accessToken, value}) => {\n if (!accessToken ) return Promise.resolve(null);\n params$.next({endpoint: value.endpoint, headersJson: value.headersJson});\n return result$;\n }),\n )\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MASa,eAAe,CAAA;AAC1B,IAAA,OAAO,OAAO,GAAA;AACZ,QAAA,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAC;AACpC,QAAA,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC;AAChC,QAAA,MAAM,OAAO,GAAG,IAAI,aAAa,CAA0C,CAAC,CAAC;QAC7E,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAC1B,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAC7C,MAAM,CAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,EAClC,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAC,KAAI;AACrC,YAAA,OAAO,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE;AACvC,gBAAA,OAAO,EAAE,WAAW,CAAC,YAAY,CAAC,WAAW,CAAC;AAC/C,aAAA,CAAC;SACH,CAAC,EACF,GAAG,CAAC,CAAC,MAAM,KAAK,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,MAAM,CAAC,CAAC,EACtE,WAAW,CAAC,CAAC,CAAC,EACd,kBAAkB,EAAE,CACrB;QAED,OAAO,CAAC,SAGN,KAAI;AACJ,YAAA,OAAO,aAAa,CAAC;gBACnB,WAAW,EAAE,IAAI,CAAC,YAAY;AAC9B,gBAAA,KAAK,EAAE,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC/D,aAAA,CAAC,CAAC,IAAI,CACL,SAAS,CAAC,CAAC,EAAC,WAAW,EAAE,KAAK,EAAC,KAAI;AACjC,gBAAA,IAAI,CAAC,WAAW;AAAG,oBAAA,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;AAC/C,gBAAA,OAAO,CAAC,IAAI,CAAC,EAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAC,CAAC;AACxE,gBAAA,OAAO,OAAO;aACf,CAAC,CACH;AACH,SAAC;;AAEJ;;AC3CD;;AAEG;;;;"}
|
|
@@ -4,7 +4,7 @@ import { AppFrameStore } from '@ng-atomic/components/frames/app';
|
|
|
4
4
|
import { APOLLO_OPTIONS, ApolloModule } from 'apollo-angular';
|
|
5
5
|
import { provideNgAtomicCommon } from '@ng-atomic/common';
|
|
6
6
|
import { AppService } from '@ng-atomic/common/services/app';
|
|
7
|
-
import { provideDayjsDateAdapter } from '@ng-atomic/common/utils';
|
|
7
|
+
import { provideDayjsDateAdapter } from '@ng-atomic/common/utils/mat-dayjs-date';
|
|
8
8
|
import { InMemoryCache } from '@apollo/client/cache';
|
|
9
9
|
import { provideMachinaDevService, MachinaDevService } from '@xxmachina/components/services/debug';
|
|
10
10
|
import { merge } from 'lodash-es';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/app.ts","../../../../../packages/@xxmachina/components/src/lib/router/index.ts","../../../../../packages/@xxmachina/components/src/lib/index.ts","../../../../../packages/@xxmachina/components/src/lib/xxmachina-components.ts"],"sourcesContent":["import { importProvidersFrom, inject, Signal } from '@angular/core';\nimport { provideNgAtomicComponents } from '@ng-atomic/components';\nimport { AppFrameStore } from '@ng-atomic/components/frames/app';\nimport { APOLLO_OPTIONS, ApolloModule } from 'apollo-angular';\nimport { provideNgAtomicCommon } from '@ng-atomic/common';\nimport { AppService } from '@ng-atomic/common/services/app';\nimport { provideDayjsDateAdapter } from '@ng-atomic/common/utils';\nimport { InMemoryCache } from '@apollo/client/cache';\nimport { MachinaDevService, provideMachinaDevService } from '@xxmachina/components/services/debug';\nimport { merge } from 'lodash-es';\n\ntype UnwrapSignal<T> = T extends Signal<infer U> ? U : never;\n\nexport function provideMachinaApp(config: {\n appFrame?: Partial<UnwrapSignal<ReturnType<typeof AppFrameStore.Config.inject>>>,\n} = {}) {\n return [\n provideMachinaDevService(),\n provideNgAtomicCommon(),\n provideNgAtomicComponents(),\n provideDayjsDateAdapter(),\n importProvidersFrom(ApolloModule),\n { provide: APOLLO_OPTIONS, useValue: { cache: new InMemoryCache() } },\n AppFrameStore.Config.provide(() => {\n const app = inject(AppService);\n return _config => {\n return merge({\n ..._config,\n isEntrance: false,\n isLoading: app.loading.isLoading(),\n fabActions: [\n { id: AppFrameStore.ActionId.OPEN_SIDE_APP, icon: 'chat' },\n ],\n title: 'Machina',\n sideNavActions: [ \n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'クエリ', icon: 'smart_toy', payload: ['query'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'ページ', icon: 'auto_stories', payload: ['pages'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '収支金額', icon: 'currency_yen', payload: ['amounts'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '償却属性', icon: 'currency_yen', payload: ['depreciations'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'アシスタント', icon: 'smart_toy', payload: ['assistants'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'スレッド', icon: 'forum', payload: ['threads'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'データベース', icon: 'table', payload: ['databases'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'スケジュール', icon: 'calendar_today', payload: ['schedules'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'タスク', icon: 'assignment', payload: ['schedules'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '受発注', icon: 'assignment', payload: ['orders'] },\n { id: AppFrameStore.ActionId.NAVIGATE, name: '請求書', icon: 'receipt', payload: ['invoices'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '契約', icon: 'assignment', payload: ['schedules'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '取引先', icon: 'business', payload: ['schedules'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '画面録画', icon: 'videocam', payload: ['video'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'ブックマークレット', icon: 'bookmark', payload: ['schedules'] },\n { id: AppFrameStore.ActionId.SIGN_OUT, name: 'ログアウト', icon: 'logout' },\n ].filter(Boolean),\n entranceActions: [\n { id: AppFrameStore.ActionId.SIGN_IN_WITH_GOOGLE, name: 'Googleでログイン', icon: 'google' },\n ],\n sideAppOutletName: 'side',\n }, {...config.appFrame});\n };\n }),\n AppFrameStore.Config.provide(() => {\n const dev = inject(MachinaDevService);\n return config => ({\n ...config,\n sideNavBottomActions: dev.isDevMode() ? [\n { id: AppFrameStore.ActionId.NAVIGATE, name: 'クエリ', icon: 'smart_toy', payload: ['queries'] },\n { id: AppFrameStore.ActionId.NAVIGATE, name: 'コマンド', icon: 'api', payload: ['commands'] },\n { id: AppFrameStore.ActionId.NAVIGATE, name: 'リソース', icon: 'hub', payload: ['resources'] },\n ] : [],\n })\n }),\n ];\n}\n","import { LoadChildrenCallback, provideRouter, withComponentInputBinding, withPreloading } from '@angular/router';\nimport { recursiveWrapRoute, recursiveWrapRoutes, wrapLoadChildren } from '@ng-atomic/core';\nimport { SideAppFrameStore } from '@ng-atomic/components/frames/side-app';\nimport { MachinaPreloadingStrategy } from '@xxmachina/components/routes/preloading';\nimport { xxRoutes } from '@xxmachina/components/routes';\nimport { ngAtomicRoute } from '@ng-atomic/components/frames/router-outlet';\n\nexport function provideMachinaRouter({\n appLoadChildren,\n sideAppLoadChildren = () => import('@xxmachina/components/routes/side'),\n}: {\n appLoadChildren: LoadChildrenCallback,\n sideAppLoadChildren?: LoadChildrenCallback,\n}) {\n return provideRouter(\n [\n recursiveWrapRoute({\n path: '',\n loadChildren: () => wrapLoadChildren(appLoadChildren).then(routes => recursiveWrapRoutes(xxRoutes(routes), ngAtomicRoute)),\n }),\n SideAppFrameStore.route({ loadChildren: sideAppLoadChildren }),\n ],\n withPreloading(MachinaPreloadingStrategy),\n withComponentInputBinding(),\n );\n}\n","export * from './app';\nexport * from './router';\n\nexport enum InvoiceAppActionId {\n UPDATE_JSON = 'UPDATE_JSON',\n NEXT_KEY_DOWN = 'NEXT_KEY_DOWN',\n PRE_KEY_DOWN = 'PRE_KEY_DOWN',\n DOWNLOAD_PDF = 'DOWNLOAD_PDF',\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAagB,SAAA,iBAAiB,CAAC,MAAA,GAE9B,EAAE,EAAA;IACJ,OAAO;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AAc,CAAC,yBAAyB,CAAC,EACzC,yBAAyB,EAAE,CAC5B;AACH;;ICtBY;AAAZ,CAAA,UAAY,kBAAkB,EAAA;AAC5B,IAAA,kBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,kBAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AAC/B,IAAA,kBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAC7B,IAAA,kBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAC/B,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,GAK7B,EAAA,CAAA,CAAA;;ACRD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"xxmachina-components.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/app.ts","../../../../../packages/@xxmachina/components/src/lib/router/index.ts","../../../../../packages/@xxmachina/components/src/lib/index.ts","../../../../../packages/@xxmachina/components/src/lib/xxmachina-components.ts"],"sourcesContent":["import { importProvidersFrom, inject, Signal } from '@angular/core';\nimport { provideNgAtomicComponents } from '@ng-atomic/components';\nimport { AppFrameStore } from '@ng-atomic/components/frames/app';\nimport { APOLLO_OPTIONS, ApolloModule } from 'apollo-angular';\nimport { provideNgAtomicCommon } from '@ng-atomic/common';\nimport { AppService } from '@ng-atomic/common/services/app';\nimport { provideDayjsDateAdapter } from '@ng-atomic/common/utils/mat-dayjs-date';\nimport { InMemoryCache } from '@apollo/client/cache';\nimport { MachinaDevService, provideMachinaDevService } from '@xxmachina/components/services/debug';\nimport { merge } from 'lodash-es';\n\ntype UnwrapSignal<T> = T extends Signal<infer U> ? U : never;\n\nexport function provideMachinaApp(config: {\n appFrame?: Partial<UnwrapSignal<ReturnType<typeof AppFrameStore.Config.inject>>>,\n} = {}) {\n return [\n provideMachinaDevService(),\n provideNgAtomicCommon(),\n provideNgAtomicComponents(),\n provideDayjsDateAdapter(),\n importProvidersFrom(ApolloModule),\n { provide: APOLLO_OPTIONS, useValue: { cache: new InMemoryCache() } },\n AppFrameStore.Config.provide(() => {\n const app = inject(AppService);\n return _config => {\n return merge({\n ..._config,\n isEntrance: false,\n isLoading: app.loading.isLoading(),\n fabActions: [\n { id: AppFrameStore.ActionId.OPEN_SIDE_APP, icon: 'chat' },\n ],\n title: 'Machina',\n sideNavActions: [ \n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'クエリ', icon: 'smart_toy', payload: ['query'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'ページ', icon: 'auto_stories', payload: ['pages'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '収支金額', icon: 'currency_yen', payload: ['amounts'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '償却属性', icon: 'currency_yen', payload: ['depreciations'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'アシスタント', icon: 'smart_toy', payload: ['assistants'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'スレッド', icon: 'forum', payload: ['threads'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'データベース', icon: 'table', payload: ['databases'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'スケジュール', icon: 'calendar_today', payload: ['schedules'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'タスク', icon: 'assignment', payload: ['schedules'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '受発注', icon: 'assignment', payload: ['orders'] },\n { id: AppFrameStore.ActionId.NAVIGATE, name: '請求書', icon: 'receipt', payload: ['invoices'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '契約', icon: 'assignment', payload: ['schedules'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '取引先', icon: 'business', payload: ['schedules'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: '画面録画', icon: 'videocam', payload: ['video'] },\n // { id: AppFrameStore.ActionId.NAVIGATE, name: 'ブックマークレット', icon: 'bookmark', payload: ['schedules'] },\n { id: AppFrameStore.ActionId.SIGN_OUT, name: 'ログアウト', icon: 'logout' },\n ].filter(Boolean),\n entranceActions: [\n { id: AppFrameStore.ActionId.SIGN_IN_WITH_GOOGLE, name: 'Googleでログイン', icon: 'google' },\n ],\n sideAppOutletName: 'side',\n }, {...config.appFrame});\n };\n }),\n AppFrameStore.Config.provide(() => {\n const dev = inject(MachinaDevService);\n return config => ({\n ...config,\n sideNavBottomActions: dev.isDevMode() ? [\n { id: AppFrameStore.ActionId.NAVIGATE, name: 'クエリ', icon: 'smart_toy', payload: ['queries'] },\n { id: AppFrameStore.ActionId.NAVIGATE, name: 'コマンド', icon: 'api', payload: ['commands'] },\n { id: AppFrameStore.ActionId.NAVIGATE, name: 'リソース', icon: 'hub', payload: ['resources'] },\n ] : [],\n })\n }),\n ];\n}\n","import { LoadChildrenCallback, provideRouter, withComponentInputBinding, withPreloading } from '@angular/router';\nimport { recursiveWrapRoute, recursiveWrapRoutes, wrapLoadChildren } from '@ng-atomic/core';\nimport { SideAppFrameStore } from '@ng-atomic/components/frames/side-app';\nimport { MachinaPreloadingStrategy } from '@xxmachina/components/routes/preloading';\nimport { xxRoutes } from '@xxmachina/components/routes';\nimport { ngAtomicRoute } from '@ng-atomic/components/frames/router-outlet';\n\nexport function provideMachinaRouter({\n appLoadChildren,\n sideAppLoadChildren = () => import('@xxmachina/components/routes/side'),\n}: {\n appLoadChildren: LoadChildrenCallback,\n sideAppLoadChildren?: LoadChildrenCallback,\n}) {\n return provideRouter(\n [\n recursiveWrapRoute({\n path: '',\n loadChildren: () => wrapLoadChildren(appLoadChildren).then(routes => recursiveWrapRoutes(xxRoutes(routes), ngAtomicRoute)),\n }),\n SideAppFrameStore.route({ loadChildren: sideAppLoadChildren }),\n ],\n withPreloading(MachinaPreloadingStrategy),\n withComponentInputBinding(),\n );\n}\n","export * from './app';\nexport * from './router';\n\nexport enum InvoiceAppActionId {\n UPDATE_JSON = 'UPDATE_JSON',\n NEXT_KEY_DOWN = 'NEXT_KEY_DOWN',\n PRE_KEY_DOWN = 'PRE_KEY_DOWN',\n DOWNLOAD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MAAM,IAAI,mBAAmB,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,CAAC;SAC3H,CAAC;QACF,iBAAiB,CAAC,KAAK,CAAC,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC;KAC/D,EACD,cAAc,CAAC,yBAAyB,CAAC,EACzC,yBAAyB,EAAE,CAC5B;AACH;;ICtBY;AAAZ,CAAA,UAAY,kBAAkB,EAAA;AAC5B,IAAA,kBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,kBAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AAC/B,IAAA,kBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAC7B,IAAA,kBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAC/B,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,GAK7B,EAAA,CAAA,CAAA;;ACRD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Schedule } from '@xxmachina/common/domain/models';
|
|
2
|
+
import { Schedule } from '@xxmachina/common/domain/models/scheduler';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class PercentagePipe implements PipeTransform {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, SimpleChanges, OnChanges } from '@angular/core';
|
|
2
|
-
import { CalendarDate, Schedule } from '@xxmachina/common/domain/models';
|
|
2
|
+
import { CalendarDate, Schedule } from '@xxmachina/common/domain/models/scheduler';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CalendarSectionOrganism implements OnChanges {
|
package/package.json
CHANGED
|
@@ -74,7 +74,6 @@ export declare class CommandPageStore extends InjectableComponent {
|
|
|
74
74
|
static provideInitialFormValueFromQueryResult(): Provider;
|
|
75
75
|
static provideExecuteCommandEffect(): Provider;
|
|
76
76
|
static provideBackEffect(): Provider;
|
|
77
|
-
static provideFileSelectedEffect(): Provider;
|
|
78
77
|
readonly feature: CommandFeature;
|
|
79
78
|
readonly config: import("@angular/core").Signal<{
|
|
80
79
|
style: {
|
|
@@ -95,13 +94,12 @@ export declare class CommandPageStore extends InjectableComponent {
|
|
|
95
94
|
readonly extractedFormFieldMap: import("@angular/core").InputSignal<any>;
|
|
96
95
|
readonly additionalFormFieldMap: import("@angular/core").InputSignal<FormFieldMap>;
|
|
97
96
|
readonly formFieldMap: import("@angular/core").InputSignal<FormFieldMap>;
|
|
98
|
-
readonly formFieldKeys: import("@angular/core").InputSignal<string[]>;
|
|
99
97
|
readonly data: import("@angular/core").Signal<any>;
|
|
100
98
|
protected readonly formInvalid: import("@angular/core").Signal<boolean>;
|
|
101
99
|
readonly actions: import("@angular/core").Signal<Action<any>[]>;
|
|
102
100
|
constructor();
|
|
103
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommandPageStore, never>;
|
|
104
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CommandPageStore, never, never, { "style": { "alias": "style"; "required": false; "isSignal": true; }; "navEndActions": { "alias": "navEndActions"; "required": false; "isSignal": true; }; "command": { "alias": "command"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "extractedFormFieldMap": { "alias": "extractedFormFieldMap"; "required": false; "isSignal": true; }; "additionalFormFieldMap": { "alias": "additionalFormFieldMap"; "required": false; "isSignal": true; }; "formFieldMap": { "alias": "formFieldMap"; "required": false; "isSignal": true; };
|
|
102
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CommandPageStore, never, never, { "style": { "alias": "style"; "required": false; "isSignal": true; }; "navEndActions": { "alias": "navEndActions"; "required": false; "isSignal": true; }; "command": { "alias": "command"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "extractedFormFieldMap": { "alias": "extractedFormFieldMap"; "required": false; "isSignal": true; }; "additionalFormFieldMap": { "alias": "additionalFormFieldMap"; "required": false; "isSignal": true; }; "formFieldMap": { "alias": "formFieldMap"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
105
103
|
}
|
|
106
104
|
export declare class CommandPage extends NgAtomicComponent {
|
|
107
105
|
protected readonly store: CommandPageStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default } from './commands.routes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
declare const _default: import("@angular/router").Routes;
|
|
2
|
+
export default _default;
|
package/routes/pages/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default } from './pages.routes';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default } from './queries.routes';
|
package/routes/query/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default } from './query.routes';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default } from './resources.routes';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Assistant } from '@xxmachina/common/domain/models';
|
|
2
|
+
import { Assistant } from '@xxmachina/common/domain/models/agent';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AssistantService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Calendar } from '@xxmachina/common/domain/models';
|
|
2
|
+
import { Calendar } from '@xxmachina/common/domain/models/scheduler';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CalendarService {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { InjectionToken } from '@angular/core';
|
|
3
3
|
import { ReplaySubject } from 'rxjs';
|
|
4
|
-
import { Command } from '@xxmachina/common/domain/models';
|
|
4
|
+
import { Command } from '@xxmachina/common/domain/models/command/command';
|
|
5
5
|
import { Resource } from '@xxmachina/common/domain/models';
|
|
6
6
|
import { JsonSchemaService } from '@xxmachina/components/services/json-schema';
|
|
7
7
|
import { AppService } from '@ng-atomic/common/services/app';
|
|
8
8
|
import { OpenApiService } from '@xxmachina/components/services/openapi';
|
|
9
|
-
import { CommandActionsBuilder, ActionId, CommandActionFactoryOptions } from '@xxmachina/common/domain/builder';
|
|
9
|
+
import { CommandActionsBuilder, ActionId, CommandActionFactoryOptions } from '@xxmachina/common/domain/builder/command-action';
|
|
10
10
|
import { NavigationExtras } from '@angular/router';
|
|
11
11
|
import { Action } from '@ng-atomic/core';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormArray, FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
2
|
-
import { Schedule } from '@xxmachina/common/domain/models';
|
|
2
|
+
import { Schedule } from '@xxmachina/common/domain/models/scheduler';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ScheduleService {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphqlService } from '@xxmachina/components/services/graphql';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { Invoice } from '@xxmachina/common/domain
|
|
3
|
+
import { Invoice } from '@xxmachina/common/domain/invoice/models';
|
|
4
4
|
import { HttpClient } from '@angular/common/http';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class InvoiceService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Google } from '@xxmachina/common/domain/models';
|
|
2
|
+
import { Google } from '@xxmachina/common/domain/models/links/google';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class LinkService {
|
|
5
5
|
readonly http: HttpClient;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { OpenApi, OpenAPISchema } from '@xxmachina/common/domain/models';
|
|
3
|
+
import { OpenApi, OpenAPISchema } from '@xxmachina/common/domain/models/openapi';
|
|
4
4
|
import { JsonSchemaService } from '@xxmachina/components/services/json-schema';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class OpenApiService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GraphqlService } from '@xxmachina/components/services/graphql';
|
|
2
|
-
import { Order } from '@xxmachina/common/domain
|
|
2
|
+
import { Order } from '@xxmachina/common/domain/invoice/models';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class OrderService {
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthService } from "@xxmachina/common/auth";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export type QueryConfig = Record<string, string>;
|
|
5
|
-
export declare const QUERY_CONFIG: InjectionToken<Observable<QueryConfig>>;
|
|
6
|
-
export declare function provideQueryConfig(useFactory: () => Observable<QueryConfig>): EnvironmentProviders;
|
|
7
4
|
export declare class QueryConfigService {
|
|
8
|
-
readonly config
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
readonly config: import("@angular/core").WritableSignal<{
|
|
6
|
+
auth?: {
|
|
7
|
+
accessToken?: string;
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
readonly config$: Observable<{
|
|
11
|
+
auth?: {
|
|
12
|
+
accessToken?: string;
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
readonly auth: AuthService;
|
|
16
|
+
constructor();
|
|
17
|
+
/** @deprecated use `resolve` */
|
|
18
|
+
protected replace<T extends Record<string, any> | string>(params: T, _config?: {
|
|
19
|
+
auth?: {
|
|
20
|
+
accessToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}): T;
|
|
11
23
|
resolve<T extends object>(params: T): Observable<T>;
|
|
12
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueryConfigService, never>;
|
|
13
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<QueryConfigService>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Schedule } from '@xxmachina/common/domain/models';
|
|
2
|
+
import { Schedule } from '@xxmachina/common/domain/models/scheduler';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ScheduleService {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-commands-command.routes-CSwIdXZg.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/commands/pages/command/command.routes.ts"],"sourcesContent":["import { CommandPage, CommandPageStore } from '@xxmachina/components/pages/command';\nimport { ngAtomicRoutes } from '@ng-atomic/components/frames/router-outlet';\nimport { Routes } from '@angular/router';\n\nexport const routes: Routes = ngAtomicRoutes([\n\t{\n\t\tpath: '',\n\t\tcomponent: CommandPage,\n\t\t// loadChildren: () => import('./pages/pages.routes').then(m => m.routes)\n\t\tproviders: [\n\t\t\tCommandPageStore.provideDefault(),\n CommandPageStore.provideQueryIdFromRouteParam(),\n\t\t\tCommandPageStore.provideCommandFromRouteParamInitializer(),\n\t\t\tCommandPageStore.provideFileSelectedEffect(),\n\t\t],\n\t}\n]);\n"],"names":[],"mappings":";;;AAIO,MAAM,MAAM,GAAW,cAAc,CAAC;AAC5C,IAAA;AACC,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,WAAW;;AAEtB,QAAA,SAAS,EAAE;YACV,gBAAgB,CAAC,cAAc,EAAE;YAC9B,gBAAgB,CAAC,4BAA4B,EAAE;YAClD,gBAAgB,CAAC,uCAAuC,EAAE;YAC1D,gBAAgB,CAAC,yBAAyB,EAAE;AAC5C,SAAA;AACD;AACD,CAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-commands-pages.routes-j2xVop4W.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/commands/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: ':commandId',\n\t\tloadChildren: () => import('./command/command.routes').then(m => m.routes),\n\t\tdata: { preload: true },\n\t}\n];\n"],"names":[],"mappings":"AAEa,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,YAAY;AAClB,QAAA,YAAY,EAAE,MAAM,OAAO,oEAA0B,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AAC1E,QAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-queries-pages.routes-CfrglCIL.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/queries/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: ':queryId',\n\t\tloadChildren: () => import('@xxmachina/components/routes/query').then(m => m.routes),\n\t}\n];\n"],"names":[],"mappings":"AAEa,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,YAAY,EAAE,MAAM,OAAO,oCAAoC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AACpF;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-query-pages.routes-CxTbOJDQ.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/query/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: 'commands',\n\t\tloadChildren: () => import('@xxmachina/components/routes/commands').then(m => m.routes),\n\t},\n\t// {\n\t// \tpath: 'queries',\n\t// \tloadChildren: () => import('@xxmachina/components/routes/queries').then(m => m.routes),\n\t// },\n\t{\n\t\tpath: 'pages',\n\t\tloadChildren: () => import('@xxmachina/components/routes/pages').then(m => m.routes),\n\t},\n];\n\n"],"names":[],"mappings":"AAEa,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,YAAY,EAAE,MAAM,OAAO,uCAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AACvF,KAAA;;;;;AAKD,IAAA;AACC,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,YAAY,EAAE,MAAM,OAAO,oCAAoC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AACpF,KAAA;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-resources-pages.routes-CzjQOxwT.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/resources/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: ':resourceId',\n\t\tloadChildren: () => import('./resource/resource.routes').then(m => m.routes),\n\t}\n];"],"names":[],"mappings":"AAEa,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,aAAa;AACnB,QAAA,YAAY,EAAE,MAAM,OAAO,sEAA4B,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AAC5E;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-resources-resource.routes-C5KpB3KM.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/resources/pages/resource/resource.routes.ts"],"sourcesContent":["import { S } from '@angular/cdk/keycodes';\nimport { computed, effect, inject } from '@angular/core';\nimport { FormBuilder } from '@angular/forms';\nimport { Routes } from '@angular/router';\nimport { Resource } from '@xxmachina/common/domain/models';\nimport { ResourceHasuraRepository } from '@xxmachina/common/infra/repository/hasura';\nimport { provideLangMap, provideModelName } from '@ng-atomic/common/pipes/domain';\nimport { FormFieldMap } from '@ng-atomic/common/pipes/smart-field';\nimport { AppService } from '@ng-atomic/common/services/app';\nimport { injectEntityStore, injectOne } from '@ng-atomic/common/stores/entities';\nimport { computedRawValue, getValue, injectRouteParam } from '@ng-atomic/common/utils';\n// import { ResourcePage } from './resource.page';\nimport { FormPage, FormPageStore, provideEntityIdName } from '@ng-atomic/components/pages/form';\nimport { applyToInput, provideEffect } from '@ng-atomic/core';\nimport { getLangMap } from '@nx-ddd/common/domain';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: '',\n\t\tcomponent: FormPage,\n\t\t// loadChildren: () => import('./pages/pages.routes').then(m => m.routes)\n\t\tproviders: [\n\t\t\tprovideModelName(() => 'リソース'),\n\t\t\tprovideEntityIdName('resourceId'),\n\t\t\tFormPageStore.provideDefault(),\n\t\t\tFormPageStore.Initializer.provide((store) => {\n\t\t\t\tconst fb = inject(FormBuilder).nonNullable;\n\t\t\t\tconst form = fb.group({\n\t\t\t\t\tid: [''],\n\t\t\t\t\tprojectId: [''],\n\t\t\t\t\tname: [''],\n\t\t\t\t\ttype: ['graphql'],\n\t\t\t\t\topenapi: fb.group({\n\t\t\t\t\t\turl: [''],\n\t\t\t\t\t}),\n\t\t\t\t\tgraphql: fb.group({\n\t\t\t\t\t\turl: [''],\n\t\t\t\t\t}),\n\t\t\t\t\tcreatedAt: [{value: '', disabled: true}],\n\t\t\t\t\tupdatedAt: [{value: '', disabled: true}],\n\t\t\t\t});\n\t\t\t\tapplyToInput(store, 'form', form);\n\t\t\t}),\n\t\t\tFormPageStore.Initializer.provide((store) => {\n\t\t\t\tconst value = computedRawValue(() => store.form())\n\t\t\t\tconst formFieldMap = computed<FormFieldMap>(() => ({\n\t\t\t\t\tid: { type: 'hidden' },\n\t\t\t\t\tprojectId: { type: 'hidden' },\n\t\t\t\t\tname: { type: 'text' },\n\t\t\t\t\ttype: {\n\t\t\t\t\t\ttype: 'select',\n\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t{ name: 'GraphQL', value: 'graphql' },\n\t\t\t\t\t\t\t{ name: 'OpenAPI', value: 'openapi' },\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t'openapi.url': { type: value()?.type === 'openapi' ? 'text' : 'hidden' },\n\t\t\t\t\t'graphql.url': { type: value()?.type === 'graphql' ? 'text' : 'hidden' },\n\t\t\t\t\tcreatedAt: {\n\t\t\t\t\t\ttype: 'date',\n\t\t\t\t\t},\n\t\t\t\t\tupdatedAt: {\n\t\t\t\t\t\ttype: 'date',\n\t\t\t\t\t},\n\t\t\t\t}));\n\t\t\t\teffect(() => {\n\t\t\t\t\tapplyToInput(store, 'fieldMap', formFieldMap());\n\t\t\t\t});\n\t\t\t}),\n\t\t\tFormPageStore.Initializer.provide((store) => {\n\t\t\t\tconst resourceId = injectRouteParam('resourceId');\n\t\t\t\tconst resource = injectOne(Resource, { id: resourceId });\n\t\t\t\teffect(() => {\n\t\t\t\t\tconsole.debug('resourceId:', resourceId());\n\t\t\t\t\tconsole.debug('resource:', resource());\n\t\t\t\t\tstore.form().patchValue(resource());\n\t\t\t\t});\n\t\t\t}),\n\t\t\tprovideEffect(FormPageStore.ActionId.CREATE, () => {\n\t\t\t\tconst entity = injectEntityStore(Resource);\n\t\t\t\tconst app = inject(AppService);\n\t\t\t\tconst store = inject(FormPageStore);\n\t\t\t\treturn () => {\n\t\t\t\t\tconst value = store.form().getRawValue();\n\t\t\t\t\tconsole.debug('value:', value);\n\t\t\t\t\tapp.loading.await(() => {\n\t\t\t\t\t\treturn entity.create({\n\t\t\t\t\t\t\tid: undefined,\n\t\t\t\t\t\t\tprojectId: 'default',\n\t\t\t\t\t\t\ttype: value.type,\n\t\t\t\t\t\t\tname: value.name,\n\t\t\t\t\t\t\topenapi: value.openapi,\n\t\t\t\t\t\t\tgraphql: value.graphql,\n\t\t\t\t\t\t\tcreatedAt: undefined,\n\t\t\t\t\t\t\tupdatedAt: undefined,\n\t\t\t\t\t\t}).then(() => {\n\t\t\t\t\t\t\tapp.snackBar.open('リソースを作成しました');\n\t\t\t\t\t\t}).catch((error) => {\n\t\t\t\t\t\t\tconsole.error(error);\n\t\t\t\t\t\t\tapp.snackBar.open('リソースの作成に失敗しました');\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t};\n\t\t\t}),\n\t\t\tprovideEffect(FormPageStore.ActionId.UPDATE, () => {\n\t\t\t\tconst entity = injectEntityStore(Resource);\n\t\t\t\tconst app = inject(AppService);\n\t\t\t\tconst store = inject(FormPageStore);\n\t\t\t\tconst resourceId = injectRouteParam('resourceId');\n\t\t\t\treturn () => {\n\t\t\t\t\tconst value = store.form().getRawValue();\n\t\t\t\t\tconsole.debug('value:', value);\n\t\t\t\t\tapp.loading.await(() => {\n\t\t\t\t\t\treturn entity.update({\n\t\t\t\t\t\t\tid: resourceId(),\n\t\t\t\t\t\t\tprojectId: 'default',\n\t\t\t\t\t\t\ttype: value.type,\n\t\t\t\t\t\t\tname: value.name,\n\t\t\t\t\t\t\topenapi: value.openapi,\n\t\t\t\t\t\t\tgraphql: value.graphql,\n\t\t\t\t\t\t\tcreatedAt: undefined,\n\t\t\t\t\t\t\tupdatedAt: undefined,\n\t\t\t\t\t\t}).then(() => {\n\t\t\t\t\t\t\tapp.snackBar.open('リソースを更新しました');\n\t\t\t\t\t\t}).catch((error) => {\n\t\t\t\t\t\t\tconsole.error(error);\n\t\t\t\t\t\t\tapp.snackBar.open('リソースの更新に失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