@d19n/youfibre-odin-sdk 2.0.285 → 2.0.287

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.
Files changed (34) hide show
  1. package/README.md +18 -8
  2. package/dist/EntityRegistry.d.ts +2 -0
  3. package/dist/EntityRegistry.js +2 -0
  4. package/dist/OdinApiClient.d.ts +4 -0
  5. package/dist/OdinApiClient.js +8 -0
  6. package/dist/OdinDbClient.d.ts +4 -0
  7. package/dist/OdinDbClient.js +8 -0
  8. package/dist/accessors-v2/RecontractAccessor.d.ts +111 -0
  9. package/dist/accessors-v2/RecontractAccessor.js +190 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +4 -2
  12. package/dist/actions-v2/CreateCustomerDeviceRouterFromDispatchDto.d.ts +74 -0
  13. package/dist/actions-v2/CreateCustomerDeviceRouterFromDispatchDto.js +54 -0
  14. package/dist/actions-v2/CreateRecontractDto.d.ts +63 -0
  15. package/dist/actions-v2/CreateRecontractDto.js +59 -0
  16. package/dist/actions-v2/MoveCollectionAmcoToPendingPaymentDto.d.ts +70 -0
  17. package/dist/actions-v2/MoveCollectionAmcoToPendingPaymentDto.js +62 -0
  18. package/dist/db-accessors-v2/RecontractDbAccessor.d.ts +149 -0
  19. package/dist/db-accessors-v2/RecontractDbAccessor.js +227 -0
  20. package/dist/db-accessors-v2/index.d.ts +1 -0
  21. package/dist/db-accessors-v2/index.js +4 -2
  22. package/dist/entities-v2/WorkOrder.d.ts +6 -2
  23. package/dist/entities-v2/WorkOrder.js +4 -0
  24. package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +29 -0
  25. package/dist/records-v2/CustomerDeviceRouterRecord.js +36 -0
  26. package/dist/records-v2/OrderRecord.d.ts +20 -0
  27. package/dist/records-v2/OrderRecord.js +33 -0
  28. package/dist/records-v2/RecontractRecord.d.ts +205 -0
  29. package/dist/records-v2/RecontractRecord.js +280 -0
  30. package/dist/records-v2/WorkOrderRecord.d.ts +25 -0
  31. package/dist/records-v2/WorkOrderRecord.js +29 -0
  32. package/dist/records-v2/index.d.ts +2 -1
  33. package/dist/records-v2/index.js +10 -7
  34. package/package.json +1 -1
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * CreateCustomerDeviceRouterFromDispatch Action DTO
4
+ *
5
+ * Create a CustomerDeviceRouter from a dispatched parcel — the serial and mac AMCO reported, and nothing else.
6
+ *
7
+ * @module ServiceModule
8
+ * @entity CustomerDeviceRouter
9
+ * @actionKey CreateCustomerDeviceRouterFromDispatch
10
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CreateCustomerDeviceRouterFromDispatch
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateCustomerDeviceRouterFromDispatchDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateCustomerDeviceRouterFromDispatch
19
+ *
20
+ * Create a CustomerDeviceRouter from a dispatched parcel — the serial and mac AMCO reported, and nothing else.
21
+ *
22
+ * @actionType CREATE - Creates a new CustomerDeviceRouter record
23
+ * @module ServiceModule
24
+ * @entity CustomerDeviceRouter
25
+ * @event k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CreateCustomerDeviceRouterFromDispatch
26
+ * @permission schema.action.createcustomerdevicerouterfromdispatch.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateCustomerDeviceRouterFromDispatchDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'ServiceModule:CustomerDeviceRouter',
33
+ type: undefined,
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'CreateCustomerDeviceRouterFromDispatch';
38
+ this.schemaActionId = '5b818ad9-c6e5-4787-a990-539145fe47fe';
39
+ this.entity = 'ServiceModule:CustomerDeviceRouter';
40
+ }
41
+ }
42
+ exports.CreateCustomerDeviceRouterFromDispatchDto = CreateCustomerDeviceRouterFromDispatchDto;
43
+ /** Used by SDK generators to identify action type */
44
+ CreateCustomerDeviceRouterFromDispatchDto.ACTION_TYPE = 'CREATE';
45
+ CreateCustomerDeviceRouterFromDispatchDto.ACTION_KEY = 'CreateCustomerDeviceRouterFromDispatch';
46
+ CreateCustomerDeviceRouterFromDispatchDto.MODULE_NAME = 'ServiceModule';
47
+ CreateCustomerDeviceRouterFromDispatchDto.ENTITIES = ['CustomerDeviceRouter'];
48
+ CreateCustomerDeviceRouterFromDispatchDto.EVENT_NAME = 'k1.t-hEOJjsDb.ServiceModule.CustomerDeviceRouter.Create.CreateCustomerDeviceRouterFromDispatch';
49
+ CreateCustomerDeviceRouterFromDispatchDto.PERMISSION = 'schema.action.createcustomerdevicerouterfromdispatch.trigger';
50
+ /** Step metadata - entity this action targets */
51
+ CreateCustomerDeviceRouterFromDispatchDto.STEP_ENTITY = 'ServiceModule:CustomerDeviceRouter';
52
+ CreateCustomerDeviceRouterFromDispatchDto.STEP_SCHEMA_ID = '4c9cdf3a-e059-4e45-8050-e6cdf9fdd87d';
53
+ CreateCustomerDeviceRouterFromDispatchDto.STEP_SCHEMA_ACTION_ID = '5b818ad9-c6e5-4787-a990-539145fe47fe';
54
+ CreateCustomerDeviceRouterFromDispatchDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,63 @@
1
+ /**
2
+ * CreateRecontract Action DTO
3
+ *
4
+ * Create Recontract
5
+ *
6
+ * @module OrderModule
7
+ * @entity Recontract
8
+ * @entityType DEFAULT
9
+ * @actionKey CreateRecontract
10
+ * @event k1.t-hEOJjsDb.OrderModule.Recontract.Create.CreateRecontract
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for CreateRecontract created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.OrderModule.Recontract.Create.CreateRecontract
19
+ */
20
+ export interface CreateRecontractMessage extends OdinRecordCreatedEvent<CreateRecontractDto, CreateRecontractProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateRecontract action
24
+ *
25
+ */
26
+ export interface CreateRecontractProperties {
27
+ }
28
+ /**
29
+ * CreateRecontract
30
+ *
31
+ * Create Recontract
32
+ *
33
+ * @actionType CREATE - Creates a new Recontract record
34
+ * @module OrderModule
35
+ * @entity Recontract
36
+ * @entityType DEFAULT (Default)
37
+ * @event k1.t-hEOJjsDb.OrderModule.Recontract.Create.CreateRecontract
38
+ * @permission schema.action.createrecontract.trigger
39
+ * @benchmark This action is tracked for performance benchmarks
40
+ */
41
+ export declare class CreateRecontractDto extends OdinRecordCreateDto<CreateRecontractProperties> {
42
+ /** Used by SDK generators to identify action type */
43
+ static readonly ACTION_TYPE = "CREATE";
44
+ static readonly ACTION_KEY = "CreateRecontract";
45
+ static readonly MODULE_NAME = "OrderModule";
46
+ static readonly ENTITIES: string[];
47
+ static readonly ENTITY_TYPE = "DEFAULT";
48
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.OrderModule.Recontract.Create.CreateRecontract";
49
+ static readonly PERMISSION = "schema.action.createrecontract.trigger";
50
+ /** Step metadata - entity this action targets */
51
+ static readonly STEP_ENTITY = "OrderModule:Recontract";
52
+ static readonly STEP_SCHEMA_ID = "737797cf-3ab0-49da-827c-18ec499db889";
53
+ static readonly STEP_SCHEMA_ACTION_ID = "ca8242d6-738e-49b0-9822-8804ac5c379e";
54
+ static readonly STEP_SCHEMA_TYPE_ID = "61db803a-cf84-4fee-b460-eb0cba01b705";
55
+ static readonly STEP_TYPE = "DEFAULT";
56
+ static readonly AUTO_LINK_PARENT = true;
57
+ readonly actionName: string;
58
+ readonly schemaActionId: string;
59
+ readonly entity: string;
60
+ constructor(properties: CreateRecontractProperties, options?: {
61
+ journeyId?: string;
62
+ });
63
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateRecontract Action DTO
4
+ *
5
+ * Create Recontract
6
+ *
7
+ * @module OrderModule
8
+ * @entity Recontract
9
+ * @entityType DEFAULT
10
+ * @actionKey CreateRecontract
11
+ * @event k1.t-hEOJjsDb.OrderModule.Recontract.Create.CreateRecontract
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateRecontractDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateRecontract
20
+ *
21
+ * Create Recontract
22
+ *
23
+ * @actionType CREATE - Creates a new Recontract record
24
+ * @module OrderModule
25
+ * @entity Recontract
26
+ * @entityType DEFAULT (Default)
27
+ * @event k1.t-hEOJjsDb.OrderModule.Recontract.Create.CreateRecontract
28
+ * @permission schema.action.createrecontract.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateRecontractDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'OrderModule:Recontract',
35
+ type: 'DEFAULT',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateRecontract';
40
+ this.schemaActionId = 'ca8242d6-738e-49b0-9822-8804ac5c379e';
41
+ this.entity = 'OrderModule:Recontract';
42
+ }
43
+ }
44
+ exports.CreateRecontractDto = CreateRecontractDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateRecontractDto.ACTION_TYPE = 'CREATE';
47
+ CreateRecontractDto.ACTION_KEY = 'CreateRecontract';
48
+ CreateRecontractDto.MODULE_NAME = 'OrderModule';
49
+ CreateRecontractDto.ENTITIES = ['Recontract'];
50
+ CreateRecontractDto.ENTITY_TYPE = 'DEFAULT';
51
+ CreateRecontractDto.EVENT_NAME = 'k1.t-hEOJjsDb.OrderModule.Recontract.Create.CreateRecontract';
52
+ CreateRecontractDto.PERMISSION = 'schema.action.createrecontract.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateRecontractDto.STEP_ENTITY = 'OrderModule:Recontract';
55
+ CreateRecontractDto.STEP_SCHEMA_ID = '737797cf-3ab0-49da-827c-18ec499db889';
56
+ CreateRecontractDto.STEP_SCHEMA_ACTION_ID = 'ca8242d6-738e-49b0-9822-8804ac5c379e';
57
+ CreateRecontractDto.STEP_SCHEMA_TYPE_ID = '61db803a-cf84-4fee-b460-eb0cba01b705';
58
+ CreateRecontractDto.STEP_TYPE = 'DEFAULT';
59
+ CreateRecontractDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * MoveCollectionAmcoToPendingPayment Action DTO
3
+ *
4
+ * Move the collection work order to Pending Payment.
5
+ *
6
+ * @module FieldServiceModule
7
+ * @entity WorkOrder
8
+ * @entityType COLLECTION_AMCO
9
+ * @actionKey MoveCollectionAmcoToPendingPayment
10
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToPendingPayment
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for MoveCollectionAmcoToPendingPayment step flow events
17
+ *
18
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToPendingPayment
19
+ */
20
+ export interface MoveCollectionAmcoToPendingPaymentMessage extends OdinRecordUpdatedEvent<MoveCollectionAmcoToPendingPaymentDto, {}> {
21
+ }
22
+ /**
23
+ * Properties for MoveCollectionAmcoToPendingPayment action
24
+ *
25
+ */
26
+ export interface MoveCollectionAmcoToPendingPaymentProperties {
27
+ }
28
+ /**
29
+ * MoveCollectionAmcoToPendingPayment
30
+ *
31
+ * Move the collection work order to Pending Payment.
32
+ *
33
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
34
+ * @module FieldServiceModule
35
+ * @entity WorkOrder
36
+ * @entityType COLLECTION_AMCO ( 3PL Collection)
37
+ * @targetStages CollectionAmcoStagePendingPayment
38
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToPendingPayment
39
+ * @permission schema.action.movecollectionamcotopendingpayment.trigger
40
+ * @benchmark This action is tracked for performance benchmarks
41
+ */
42
+ export declare class MoveCollectionAmcoToPendingPaymentDto extends OdinRecordUpdateDto<Record<string, any>> {
43
+ /** Used by SDK generators to identify action type */
44
+ static readonly ACTION_TYPE = "UPDATE";
45
+ static readonly ACTION_KEY = "MoveCollectionAmcoToPendingPayment";
46
+ static readonly MODULE_NAME = "FieldServiceModule";
47
+ static readonly ENTITIES: string[];
48
+ static readonly ENTITY_TYPE = "COLLECTION_AMCO";
49
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToPendingPayment";
50
+ static readonly SCHEMA_ACTION_ID = "2136c985-8f01-4ca8-a265-4b73ae810f7e";
51
+ static readonly PERMISSION = "schema.action.movecollectionamcotopendingpayment.trigger";
52
+ static readonly TARGET_STAGES: readonly ["CollectionAmcoStagePendingPayment"];
53
+ static readonly IS_STAGE_TRANSITION = true;
54
+ static readonly IS_MULTI_STEP_FLOW = false;
55
+ static readonly HAS_STEP_LINKS = false;
56
+ readonly actionName: string;
57
+ readonly schemaActionId: string;
58
+ readonly entity: string;
59
+ readonly stageKey: string;
60
+ constructor(record: OdinRecord<any> | {
61
+ id: string;
62
+ entity: string;
63
+ type?: string;
64
+ }, options?: {
65
+ journeyId?: string;
66
+ });
67
+ /** Step classes that can be used with this action */
68
+ static readonly stepClasses: readonly [];
69
+ steps: [];
70
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /**
3
+ * MoveCollectionAmcoToPendingPayment Action DTO
4
+ *
5
+ * Move the collection work order to Pending Payment.
6
+ *
7
+ * @module FieldServiceModule
8
+ * @entity WorkOrder
9
+ * @entityType COLLECTION_AMCO
10
+ * @actionKey MoveCollectionAmcoToPendingPayment
11
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToPendingPayment
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MoveCollectionAmcoToPendingPaymentDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * MoveCollectionAmcoToPendingPayment
20
+ *
21
+ * Move the collection work order to Pending Payment.
22
+ *
23
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
24
+ * @module FieldServiceModule
25
+ * @entity WorkOrder
26
+ * @entityType COLLECTION_AMCO ( 3PL Collection)
27
+ * @targetStages CollectionAmcoStagePendingPayment
28
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToPendingPayment
29
+ * @permission schema.action.movecollectionamcotopendingpayment.trigger
30
+ * @benchmark This action is tracked for performance benchmarks
31
+ */
32
+ class MoveCollectionAmcoToPendingPaymentDto extends core_1.OdinRecordUpdateDto {
33
+ constructor(record, options) {
34
+ super({
35
+ id: record.id,
36
+ entity: record.entity,
37
+ type: record.type,
38
+ properties: {},
39
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
40
+ });
41
+ this.actionName = 'MoveCollectionAmcoToPendingPayment';
42
+ this.schemaActionId = '2136c985-8f01-4ca8-a265-4b73ae810f7e';
43
+ this.entity = 'FieldServiceModule:WorkOrder';
44
+ this.stageKey = 'CollectionAmcoStagePendingPayment';
45
+ }
46
+ }
47
+ exports.MoveCollectionAmcoToPendingPaymentDto = MoveCollectionAmcoToPendingPaymentDto;
48
+ /** Used by SDK generators to identify action type */
49
+ MoveCollectionAmcoToPendingPaymentDto.ACTION_TYPE = 'UPDATE';
50
+ MoveCollectionAmcoToPendingPaymentDto.ACTION_KEY = 'MoveCollectionAmcoToPendingPayment';
51
+ MoveCollectionAmcoToPendingPaymentDto.MODULE_NAME = 'FieldServiceModule';
52
+ MoveCollectionAmcoToPendingPaymentDto.ENTITIES = ['WorkOrder'];
53
+ MoveCollectionAmcoToPendingPaymentDto.ENTITY_TYPE = 'COLLECTION_AMCO';
54
+ MoveCollectionAmcoToPendingPaymentDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToPendingPayment';
55
+ MoveCollectionAmcoToPendingPaymentDto.SCHEMA_ACTION_ID = '2136c985-8f01-4ca8-a265-4b73ae810f7e';
56
+ MoveCollectionAmcoToPendingPaymentDto.PERMISSION = 'schema.action.movecollectionamcotopendingpayment.trigger';
57
+ MoveCollectionAmcoToPendingPaymentDto.TARGET_STAGES = ['CollectionAmcoStagePendingPayment'];
58
+ MoveCollectionAmcoToPendingPaymentDto.IS_STAGE_TRANSITION = true;
59
+ MoveCollectionAmcoToPendingPaymentDto.IS_MULTI_STEP_FLOW = false;
60
+ MoveCollectionAmcoToPendingPaymentDto.HAS_STEP_LINKS = false;
61
+ /** Step classes that can be used with this action */
62
+ MoveCollectionAmcoToPendingPaymentDto.stepClasses = [];
@@ -0,0 +1,149 @@
1
+ /**
2
+ * Recontract DB Accessor
3
+ *
4
+ * Provides typed access to Recontract records via direct database access.
5
+ * For use in backend services with principal + dbService.
6
+ * Returns wrapped records with typed action methods.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * // Simple get
11
+ * const record = await accessor.get(id);
12
+ *
13
+ * // With related entities
14
+ * const record = await accessor.get(id, { entities: ["Contact", "Address"] });
15
+ *
16
+ * // With permissions bypass (separate options)
17
+ * const record = await accessor.get(id, {}, { omitPermissionsCheck: true });
18
+ *
19
+ * // Silent write (no RabbitMQ events)
20
+ * const result = await accessor.upsert([dto], { omitWriteEvents: true });
21
+ *
22
+ * // Constructor-level default (applies to all calls)
23
+ * const accessor = new RecontractDbAccessor(principal, dbService, { omitPermissionsCheck: true });
24
+ * ```
25
+ *
26
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
27
+ */
28
+ import { OdinSearchV2 } from '@d19n/odin-types/dist/core';
29
+ import { DbProvider, DbProviderOptions, DbGetQueryOptions } from '@d19n/odin-sdk-generator/dist/db.provider';
30
+ import { QueryBuilder } from '@d19n/odin-sdk-generator/dist/query-builder';
31
+ import { RecontractProperties } from '../entities-v2/Recontract';
32
+ import { RecontractRecord } from '../records-v2/RecontractRecord';
33
+ /** Search response with wrapped records */
34
+ export interface RecontractDbSearchResponse {
35
+ records: RecontractRecord[];
36
+ totalRecords: number;
37
+ hasMore: boolean;
38
+ }
39
+ export declare class RecontractDbAccessor {
40
+ private readonly _provider;
41
+ private readonly _moduleName;
42
+ private readonly _entityName;
43
+ private readonly _defaultOptions?;
44
+ /**
45
+ * Create a new RecontractDbAccessor
46
+ * @param principal - The authenticated principal
47
+ * @param dbService - The database service instance
48
+ * @param defaultOptions - Default provider options applied to all operations
49
+ */
50
+ constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
51
+ get moduleName(): string;
52
+ get entityName(): string;
53
+ /**
54
+ * Create a new empty Recontract record instance for create operations.
55
+ * Pre-generates an ID that can be referenced before the record is saved.
56
+ *
57
+ * @param id - Optional ID to use (auto-generated UUID if not provided)
58
+ * @returns A new record wrapper with pre-generated ID
59
+ *
60
+ * @example
61
+ * ```typescript
62
+ * // Auto-generated ID
63
+ * const note = odinDb.notes.new();
64
+ * console.log(note.id); // UUID available immediately
65
+ *
66
+ * // Custom ID
67
+ * const order = odinDb.orders.new("custom-id-123");
68
+ *
69
+ * // Reference ID before save
70
+ * const account = odinDb.accounts.new();
71
+ * const contact = odinDb.contacts.new();
72
+ * await contact
73
+ * .link({ id: account.id, entity: "CrmModule:Account" })
74
+ * .createContact({ FirstName: "John" });
75
+ * ```
76
+ */
77
+ new(id?: string): RecontractRecord;
78
+ /**
79
+ * Get a single Recontract record by ID
80
+ *
81
+ * @param id - The record ID
82
+ * @param queryOptions - Query options (WHAT to fetch: entities to include)
83
+ * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
84
+ *
85
+ * @example
86
+ * ```typescript
87
+ * // Simple get
88
+ * const record = await accessor.get(id);
89
+ *
90
+ * // With related entities
91
+ * const record = await accessor.get(id, { entities: ["Contact", "Address"] });
92
+ *
93
+ * // With permissions bypass
94
+ * const record = await accessor.get(id, {}, { omitPermissionsCheck: true });
95
+ *
96
+ * // Both options
97
+ * const record = await accessor.get(id, { entities: ["Invoice"] }, { omitPermissionsCheck: true });
98
+ * ```
99
+ */
100
+ get(id: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<RecontractRecord>;
101
+ /**
102
+ * Get multiple Recontract records by IDs
103
+ *
104
+ * @param ids - Array of record IDs
105
+ * @param queryOptions - Query options (WHAT to fetch: entities to include)
106
+ * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
107
+ */
108
+ getMany(ids: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<RecontractRecord[]>;
109
+ /**
110
+ * Search Recontract records
111
+ *
112
+ * @param params - Search parameters
113
+ * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
114
+ */
115
+ search(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<RecontractDbSearchResponse>;
116
+ /**
117
+ * Search all Recontract records with automatic pagination
118
+ *
119
+ * @param params - Search parameters
120
+ * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
121
+ */
122
+ searchAll(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<RecontractRecord[]>;
123
+ /**
124
+ * Async generator for paginating through all matching records.
125
+ * Yields batches of wrapped records.
126
+ *
127
+ * @param params - Search parameters
128
+ * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
129
+ */
130
+ paginate(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): AsyncGenerator<RecontractRecord[]>;
131
+ /**
132
+ * Create a fluent query builder for Recontract records
133
+ *
134
+ * @example
135
+ * ```typescript
136
+ * const results = await accessor
137
+ * .query()
138
+ * .where('Status', 'in', ['Active', 'Pending'])
139
+ * .where('CreatedAt', 'gte', '2025-01-01')
140
+ * .select('id', 'title', 'properties.*')
141
+ * .sortBy('createdAt', 'desc')
142
+ * .limit(100)
143
+ * .execute();
144
+ * ```
145
+ */
146
+ query(): QueryBuilder<RecontractProperties, RecontractRecord>;
147
+ /** Access the underlying DbProvider */
148
+ get provider(): DbProvider;
149
+ }