@apollion-dsi/relay 0.27.1 → 0.27.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/README.MD CHANGED
@@ -1,8 +1,8 @@
1
1
  # @apollion-dsi/relay
2
2
 
3
- Helpers para configurar e usar **Relay** (`react-relay` / `relay-runtime`)
4
- no padrão do Apollion DS. Cobre criação de Environment com auth,
5
- upload multipart, subscriptions via WebSocket e cookies de sessão.
3
+ Helpers to configure and use **Relay** (`react-relay` / `relay-runtime`)
4
+ the Apollion DS way. Covers Environment creation with auth,
5
+ multipart upload, subscriptions via WebSocket, and session cookies.
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/@apollion-dsi/relay.svg)](https://www.npmjs.com/package/@apollion-dsi/relay)
8
8
 
@@ -13,20 +13,20 @@ upload multipart, subscriptions via WebSocket e cookies de sessão.
13
13
  - **graphql** 15.x
14
14
  - **graphql-ws** 6.x (subscriptions)
15
15
  - **fetch-multipart-graphql** (uploads)
16
- - **js-cookie** (sessão)
16
+ - **js-cookie** (session)
17
17
 
18
- ## Instalação
18
+ ## Installation
19
19
 
20
20
  ```bash
21
21
  yarn add @apollion-dsi/relay react@19.2.6
22
22
  ```
23
23
 
24
- > Para gerar artefatos Relay, o consumidor também precisa de
25
- > `relay-compiler` como dev dependency e configurar `relay.config.js`.
24
+ > To generate Relay artifacts, the consumer also needs
25
+ > `relay-compiler` as a dev dependency and a `relay.config.js` setup.
26
26
 
27
- ## Uso básico
27
+ ## Basic usage
28
28
 
29
- Crie um Relay Environment para a aplicação:
29
+ Create a Relay Environment for the application:
30
30
 
31
31
  ```ts
32
32
  import { CreateRelayEnvironment } from '@apollion-dsi/relay';
@@ -36,7 +36,7 @@ export const { Environment } = new CreateRelayEnvironment({
36
36
  });
37
37
  ```
38
38
 
39
- Depois, embrulhe a árvore React com `RelayEnvironmentProvider`:
39
+ Then wrap the React tree with `RelayEnvironmentProvider`:
40
40
 
41
41
  ```tsx
42
42
  import { RelayEnvironmentProvider } from 'react-relay';
@@ -48,72 +48,72 @@ import { App } from './app';
48
48
  </RelayEnvironmentProvider>;
49
49
  ```
50
50
 
51
- ## Recursos do helper
51
+ ## Helper features
52
52
 
53
- - **Autenticação** em dois modos: `Bearer` (token JS) ou **cookie
54
- httpOnly** (ver abaixo).
55
- - **Multipart uploads** (`fetch-multipart-graphql`) — envie arquivos
56
- diretamente em mutations.
53
+ - **Authentication** in two modes: `Bearer` (JS token) or **httpOnly
54
+ cookie** (see below).
55
+ - **Multipart uploads** (`fetch-multipart-graphql`) — send files
56
+ directly in mutations.
57
57
  - **Subscriptions** via `graphql-ws`.
58
- - **Network retry / refresh** plugável.
58
+ - Pluggable **network retry / refresh**.
59
59
 
60
- ## Autenticação: Bearer vs. cookie httpOnly
60
+ ## Authentication: Bearer vs. httpOnly cookie
61
61
 
62
- O Environment suporta dois modelos de auth via `authMode`.
62
+ The Environment supports two auth models via `authMode`.
63
63
 
64
- ### `authMode: 'bearer'` (default — retrocompat)
64
+ ### `authMode: 'bearer'` (default — backwards compatible)
65
65
 
66
- o `sessionToken` do storage (`localStorage`/`cookie` JS-legível) e
67
- injeta `Authorization: Bearer <token>` em cada request. A verificação de
68
- sessão usa o probe `${authUrl}user/me`. Comportamento idêntico ao das
69
- versões anterioresconsumidores existentes não precisam mudar nada.
66
+ Reads the `sessionToken` from storage (`localStorage`/JS-readable `cookie`) and
67
+ injects `Authorization: Bearer <token>` into every request. Session
68
+ verification uses the `${authUrl}user/me` probe. Behavior is identical to
69
+ previous versionsexisting consumers don't need to change anything.
70
70
 
71
71
  ```ts
72
72
  new CreateRelayEnvironment({
73
73
  url: 'https://api.example.com/graphql/',
74
74
  authUrl: 'https://api.example.com/auth/',
75
- useAuthorization: true, // injeta Bearer
76
- storageType: 'cookie', // cookie JS-legível ou 'localStorage'
75
+ useAuthorization: true, // injects Bearer
76
+ storageType: 'cookie', // JS-readable cookie or 'localStorage'
77
77
  });
78
78
  ```
79
79
 
80
- ### `authMode: 'cookie'` (sessão por cookie httpOnlyrecomendado p/ SPA)
80
+ ### `authMode: 'cookie'` (httpOnly cookie sessionrecommended for SPAs)
81
81
 
82
- Modelo seguro: o token de sessão vive num cookie **httpOnly + SameSite**
83
- (invisível ao JS, imune a XSS). O Environment **não** lê o token nem
84
- injeta `Authorization` — `credentials: 'include'` (default neste modo)
85
- faz o browser anexar o cookie automaticamente, inclusive cross-origin.
86
- Em erro de auth (ex: 401), o refresh é disparado com `POST` em `authUrl`
87
- e `credentials: 'include'` — **sem** probe a `user/me`.
82
+ The secure model: the session token lives in an **httpOnly + SameSite**
83
+ cookie (invisible to JS, immune to XSS). The Environment does **not** read
84
+ the token or inject `Authorization` — `credentials: 'include'` (the default
85
+ in this mode) makes the browser attach the cookie automatically, including
86
+ cross-origin. On an auth error (e.g. 401), the refresh is fired as a `POST`
87
+ to `authUrl` with `credentials: 'include'` — **without** probing `user/me`.
88
88
 
89
89
  ```ts
90
90
  new CreateRelayEnvironment({
91
91
  url: 'https://api.example.com/graphql/',
92
- authUrl: 'https://api.example.com/auth/refresh/', // alvo do refresh on-401
92
+ authUrl: 'https://api.example.com/auth/refresh/', // on-401 refresh target
93
93
  authMode: 'cookie',
94
94
  redirectOnError: true,
95
95
  loginRoute: '/login',
96
96
  });
97
97
  ```
98
98
 
99
- Opções relacionadas:
99
+ Related options:
100
100
 
101
- | Opção | Default | O que faz |
101
+ | Option | Default | What it does |
102
102
  |---|---|---|
103
- | `authMode` | `'bearer'` | `'bearer'` (token + header) ou `'cookie'` (httpOnly). |
104
- | `credentials` | cookie→`'include'`; bearer→omitido | `RequestCredentials` repassado aos fetches GraphQL e de refresh. Funciona nos dois modos. |
105
- | `sessionCheckUrl` | modo-dependente | Sobrescreve a URL do probe; `false` desliga o probe (erro de auth → logout direto, sem request extra). |
103
+ | `authMode` | `'bearer'` | `'bearer'` (token + header) or `'cookie'` (httpOnly). |
104
+ | `credentials` | cookie→`'include'`; bearer→omitted | `RequestCredentials` forwarded to the GraphQL and refresh fetches. Works in both modes. |
105
+ | `sessionCheckUrl` | mode-dependent | Overrides the probe URL; `false` disables the probe (auth errordirect logout, no extra request). |
106
106
 
107
107
  ## Scripts (workspace)
108
108
 
109
- | Script | O que faz |
109
+ | Script | What it does |
110
110
  |---|---|
111
111
  | `yarn workspace @apollion-dsi/relay run validate` | Lint + types + prettier + Jest + build. |
112
112
  | `yarn workspace @apollion-dsi/relay run coverage` | Jest coverage. |
113
- | `yarn workspace @apollion-dsi/relay run build` | esbuild + emit de types. |
113
+ | `yarn workspace @apollion-dsi/relay run build` | esbuild + types emit. |
114
114
  | `yarn workspace @apollion-dsi/relay run audit-dependencies` | audit-ci. |
115
- | `yarn workspace @apollion-dsi/relay run pretest` | `relay-compiler` (gera `__generated__` antes dos testes). |
115
+ | `yarn workspace @apollion-dsi/relay run pretest` | `relay-compiler` (generates `__generated__` before the tests). |
116
116
 
117
- ## Licença
117
+ ## License
118
118
 
119
119
  MIT.
@@ -1,27 +1,27 @@
1
1
  import { MutationConfig, MutationParameters } from 'relay-runtime';
2
2
  import { Environment } from 'relay-runtime/lib/store/RelayStoreTypes';
3
3
  /**
4
- * Wrapper Promise-based em torno do `commitMutation` do `relay-runtime`.
4
+ * Promise-based wrapper around `relay-runtime`'s `commitMutation`.
5
5
  *
6
- * O `commitMutation` original do Relay expõe a conclusão da mutação via os
7
- * callbacks `onCompleted` e `onError`. Esta função encapsula esses callbacks
8
- * em uma `Promise`, permitindo o uso natural de `async/await` no consumidor
9
- * o que tipicamente cobre 95% dos casos. Para fluxos que precisam de
10
- * `optimisticResponse`, `updater`, `cacheConfig` etc., todas as demais opções
11
- * de `MutationConfig` continuam sendo aceitas via `config`.
6
+ * Relay's original `commitMutation` exposes mutation completion via the
7
+ * `onCompleted` and `onError` callbacks. This function encapsulates those
8
+ * callbacks in a `Promise`, allowing natural `async/await` usage in the
9
+ * consumer which typically covers 95% of the cases. For flows that need
10
+ * `optimisticResponse`, `updater`, `cacheConfig` etc., all the remaining
11
+ * `MutationConfig` options are still accepted via `config`.
12
12
  *
13
- * Os campos `onCompleted` e `onError` são omitidos do `config` de propósito:
14
- * eles são gerenciados internamente para alimentar o resolve/reject da Promise.
13
+ * The `onCompleted` and `onError` fields are omitted from `config` on purpose:
14
+ * they are managed internally to feed the Promise's resolve/reject.
15
15
  *
16
- * @typeParam T - Tipo gerado pelo Relay Compiler para a mutação (`graphql`
17
- * tagged) — fornece o shape de `variables` e `response`.
16
+ * @typeParam T - Type generated by the Relay Compiler for the mutation
17
+ * (`graphql` tagged) — provides the shape of `variables` and `response`.
18
18
  *
19
- * @param environment - Ambiente Relay (geralmente o exposto por
19
+ * @param environment - Relay environment (usually the one exposed by
20
20
  * `CreateRelayEnvironment`).
21
- * @param config - Configuração da mutação, sem `onCompleted` e `onError`.
21
+ * @param config - Mutation configuration, without `onCompleted` and `onError`.
22
22
  *
23
- * @returns Promise que resolve com `T['response']` ou rejeita com o erro
24
- * retornado pelo Relay.
23
+ * @returns Promise that resolves with `T['response']` or rejects with the
24
+ * error returned by Relay.
25
25
  *
26
26
  * @example
27
27
  * ```tsx
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Barrel público do módulo `commitMutation`.
2
+ * Public barrel for the `commitMutation` module.
3
3
  *
4
- * Reexporta a função `commitMutation` para que consumidores possam importar
5
- * via `@apollion-dsi/relay/commitMutation` (importação granular, evitando
6
- * carregar o resto do pacote) ou via `@apollion-dsi/relay` (barrel raiz).
4
+ * Re-exports the `commitMutation` function so consumers can import it
5
+ * via `@apollion-dsi/relay/commitMutation` (granular import, avoiding
6
+ * loading the rest of the package) or via `@apollion-dsi/relay` (root barrel).
7
7
  */
8
8
  export * from './commitMutation';
package/lib/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  /**
2
- * Barrel público do package `@apollion-dsi/relay`.
2
+ * Public barrel for the `@apollion-dsi/relay` package.
3
3
  *
4
- * Reexporta a superfície pública do package: a fábrica de Environment
5
- * (`CreateRelayEnvironment`), o Context/hook (`EnvironmentProvider` /
6
- * `useEnvironment`), os tipos de configuração (`RelayArgsInterface`,
7
- * `Sink`), os utilitários de updater de mutations e o wrapper
8
- * Promise-based `commitMutation`.
4
+ * Re-exports the package's public surface: the Environment factory
5
+ * (`CreateRelayEnvironment`), the Context/hook (`EnvironmentProvider` /
6
+ * `useEnvironment`), the configuration types (`RelayArgsInterface`,
7
+ * `Sink`), the mutation updater utilities and the Promise-based
8
+ * `commitMutation` wrapper.
9
9
  *
10
- * Cada módulo também pode ser importado de forma granular via
11
- * `@apollion-dsi/relay/<nome>` quando o consumidor quiser carregar
12
- * menos código.
10
+ * Each module can also be imported granularly via
11
+ * `@apollion-dsi/relay/<name>` when the consumer wants to load
12
+ * less code.
13
13
  */
14
14
  export { default as CreateRelayEnvironment } from './setupRelayEnvironment/setupRelayEnvironment';
15
15
  export * from './useEnvironment';
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Barrel público do módulo `mutationUtils`.
2
+ * Public barrel for the `mutationUtils` module.
3
3
  *
4
- * Reexporta os helpers para escrever `updater`s de mutations Relay
5
- * (listas, connections, optimistic responses). Importável via
6
- * `@apollion-dsi/relay/mutationUtils` (granular) ou via
7
- * `@apollion-dsi/relay` (barrel raiz).
4
+ * Re-exports the helpers for writing Relay mutation `updater`s
5
+ * (lists, connections, optimistic responses). Importable via
6
+ * `@apollion-dsi/relay/mutationUtils` (granular) or via
7
+ * `@apollion-dsi/relay` (root barrel).
8
8
  */
9
9
  export * from './mutationUtils';
@@ -1,28 +1,28 @@
1
1
  /**
2
- * @fileoverview Utilitários para escrever `updater`s de mutations Relay
3
- * de forma declarativa, sem precisar manipular `RecordProxy` /
4
- * `ConnectionHandler` à mão em cada caso comum.
2
+ * @fileoverview Utilities for writing Relay mutation `updater`s
3
+ * declaratively, without having to manipulate `RecordProxy` /
4
+ * `ConnectionHandler` by hand in every common case.
5
5
  *
6
- * Cobre os cenários mais frequentes:
7
- * - inserir/remover itens em listas (`linked records`);
8
- * - inserir/remover edges em connections (paginação Relay);
9
- * - copiar campos escalares de um objeto JS para um `RecordProxy`
10
- * (útil em respostas otimistas).
6
+ * Covers the most frequent scenarios:
7
+ * - inserting/removing items in lists (`linked records`);
8
+ * - inserting/removing edges in connections (Relay pagination);
9
+ * - copying scalar fields from a JS object to a `RecordProxy`
10
+ * (useful in optimistic responses).
11
11
  */
12
12
  import { RecordProxy, RecordSourceSelectorProxy } from 'relay-runtime';
13
13
  /**
14
- * Verifica se um valor é um objeto não-nulo (para detectar campos
15
- * escalares vs. linked records em `copyObjScalarsToProxy`).
14
+ * Checks whether a value is a non-null object (to detect scalar
15
+ * fields vs. linked records in `copyObjScalarsToProxy`).
16
16
  */
17
17
  export declare function isObject(obj: any): boolean;
18
- /** Argumentos de `listRecordRemoveUpdater`. */
18
+ /** Arguments for `listRecordRemoveUpdater`. */
19
19
  type ListRecordRemoveUpdaterOptions = {
20
20
  parentId: string;
21
21
  itemId: string;
22
22
  parentFieldName: string;
23
23
  store: RecordSourceSelectorProxy;
24
24
  };
25
- /** Argumentos de `listRecordAddUpdater`. */
25
+ /** Arguments for `listRecordAddUpdater`. */
26
26
  type ListRecordAddUpdaterOptions = {
27
27
  parentId: string;
28
28
  item: Record<string, any>;
@@ -30,7 +30,7 @@ type ListRecordAddUpdaterOptions = {
30
30
  parentFieldName: string;
31
31
  store: RecordSourceSelectorProxy;
32
32
  };
33
- /** Argumentos de `optimisticConnectionUpdater`. */
33
+ /** Arguments for `optimisticConnectionUpdater`. */
34
34
  type OptimisticConnectionUpdaterOptions = {
35
35
  parentId: string;
36
36
  store: RecordSourceSelectorProxy;
@@ -39,95 +39,95 @@ type OptimisticConnectionUpdaterOptions = {
39
39
  customNode: RecordProxy;
40
40
  itemType: string;
41
41
  };
42
- /** Argumentos de `connectionDeleteEdgeUpdater`. */
42
+ /** Arguments for `connectionDeleteEdgeUpdater`. */
43
43
  type ConnectionDeleteEdgeUpdaterOptions = {
44
44
  parentId: string;
45
45
  connectionName: string;
46
46
  nodeId: string;
47
47
  store: RecordSourceSelectorProxy;
48
48
  };
49
- /** Argumentos de `copyObjScalarsToProxy`. */
49
+ /** Arguments for `copyObjScalarsToProxy`. */
50
50
  type CopyObjScalarsToProxyOptions = {
51
51
  object: Record<string, any>;
52
52
  proxy: RecordProxy;
53
53
  };
54
54
  /**
55
- * Identificador único gerado uma vez por carregamento do módulo,
56
- * destinado ao campo `clientMutationId` esperado pelo padrão Relay
57
- * Modern.
55
+ * Unique identifier generated once per module load,
56
+ * intended for the `clientMutationId` field expected by the Relay
57
+ * Modern pattern.
58
58
  */
59
59
  export declare const ClientMutationID: string;
60
60
  /**
61
- * Remove um item de uma lista de `linked records` num parent.
61
+ * Removes an item from a `linked records` list on a parent.
62
62
  *
63
- * Usa `getLinkedRecords` + `setLinkedRecords` com filtro por `dataID`.
64
- * Para connections paginadas, prefira `connectionDeleteEdgeUpdater`.
63
+ * Uses `getLinkedRecords` + `setLinkedRecords` with a `dataID` filter.
64
+ * For paginated connections, prefer `connectionDeleteEdgeUpdater`.
65
65
  *
66
- * @param options.parentId - DataID do parent que possui o linked field.
67
- * @param options.itemId - DataID do item a remover.
68
- * @param options.parentFieldName - Nome do field linked no parent.
69
- * @param options.store - `RecordSourceSelectorProxy` recebido no updater.
66
+ * @param options.parentId - DataID of the parent that owns the linked field.
67
+ * @param options.itemId - DataID of the item to remove.
68
+ * @param options.parentFieldName - Name of the linked field on the parent.
69
+ * @param options.store - `RecordSourceSelectorProxy` received in the updater.
70
70
  */
71
71
  export declare function listRecordRemoveUpdater({ parentId, itemId, parentFieldName, store, }: ListRecordRemoveUpdaterOptions): void;
72
72
  /**
73
- * Adiciona um item ao final de uma lista de `linked records`.
73
+ * Adds an item to the end of a `linked records` list.
74
74
  *
75
- * Cria um novo `RecordProxy` usando `item.id` como dataID e copia todos
76
- * os campos de `item` para o novo record (sem validar tiposescalares
77
- * e linked refs viram `setValue`).
75
+ * Creates a new `RecordProxy` using `item.id` as the dataID and copies all
76
+ * fields from `item` to the new record (without validating typesscalars
77
+ * and linked refs both go through `setValue`).
78
78
  *
79
- * @param options.parentId - DataID do parent.
80
- * @param options.item - Objeto com os campos do novo record (precisa ter `id`).
81
- * @param options.type - Tipo GraphQL do record (ex: `'Todo'`).
82
- * @param options.parentFieldName - Nome do field linked no parent.
83
- * @param options.store - `RecordSourceSelectorProxy` do updater.
79
+ * @param options.parentId - DataID of the parent.
80
+ * @param options.item - Object with the new record's fields (must have `id`).
81
+ * @param options.type - GraphQL type of the record (e.g. `'Todo'`).
82
+ * @param options.parentFieldName - Name of the linked field on the parent.
83
+ * @param options.store - The updater's `RecordSourceSelectorProxy`.
84
84
  */
85
85
  export declare function listRecordAddUpdater({ parentId, item, type, parentFieldName, store, }: ListRecordAddUpdaterOptions): void;
86
86
  /**
87
- * Insere um edge em uma connection paginada (Relay Connections spec).
87
+ * Inserts an edge into a paginated connection (Relay Connections spec).
88
88
  *
89
- * @param store - `RecordSourceSelectorProxy` do updater.
90
- * @param parentId - DataID do parent que possui a connection.
91
- * @param connectionName - Nome da connection no schema (`@connection(key: ...)`).
92
- * @param edge - O `RecordProxy` do edge criado pelo chamador.
93
- * @param before - Se `true`, insere antes do primeiro edge (default `false`).
89
+ * @param store - The updater's `RecordSourceSelectorProxy`.
90
+ * @param parentId - DataID of the parent that owns the connection.
91
+ * @param connectionName - Connection name in the schema (`@connection(key: ...)`).
92
+ * @param edge - The edge's `RecordProxy`, already created by the caller.
93
+ * @param before - If `true`, inserts before the first edge (default `false`).
94
94
  */
95
95
  export declare function connectionUpdater(store: RecordSourceSelectorProxy, parentId: string, connectionName: string, edge: RecordProxy, before?: boolean): void;
96
96
  /**
97
- * Variante de `connectionUpdater` usada em respostas otimistas: cria o
98
- * node e o edge "do zero" a partir de um objeto JS, simulando o que o
99
- * servidor retornaria.
97
+ * Variant of `connectionUpdater` used in optimistic responses: creates the
98
+ * node and the edge "from scratch" out of a JS object, simulating what the
99
+ * server would return.
100
100
  *
101
- * @param options.parentId - DataID do parent.
101
+ * @param options.parentId - DataID of the parent.
102
102
  * @param options.store - `RecordSourceSelectorProxy`.
103
- * @param options.connectionName - Nome da connection.
104
- * @param options.item - Objeto com os campos do novo node (precisa ter `id`).
105
- * @param options.customNode - `RecordProxy` pré-criado (opcional, evita criar via `item`).
106
- * @param options.itemType - Tipo GraphQL do node (ex: `'Todo'`); o edge
107
- * será criado como `<itemType>Edge`.
103
+ * @param options.connectionName - Connection name.
104
+ * @param options.item - Object with the new node's fields (must have `id`).
105
+ * @param options.customNode - Pre-created `RecordProxy` (optional, avoids creating via `item`).
106
+ * @param options.itemType - GraphQL type of the node (e.g. `'Todo'`); the edge
107
+ * will be created as `<itemType>Edge`.
108
108
  */
109
109
  export declare function optimisticConnectionUpdater({ parentId, store, connectionName, item, customNode, itemType, }: OptimisticConnectionUpdaterOptions): void;
110
110
  /**
111
- * Remove um node de uma connection paginada pelo seu `dataID`.
111
+ * Removes a node from a paginated connection by its `dataID`.
112
112
  *
113
- * Loga `console.warn` se a connection não for encontrada (geralmente
114
- * significa que o `connectionName` está errado).
113
+ * Logs a `console.warn` if the connection is not found (usually
114
+ * means the `connectionName` is wrong).
115
115
  *
116
- * @param options.parentId - DataID do parent.
117
- * @param options.connectionName - Nome da connection.
118
- * @param options.nodeId - DataID do node a remover.
116
+ * @param options.parentId - DataID of the parent.
117
+ * @param options.connectionName - Connection name.
118
+ * @param options.nodeId - DataID of the node to remove.
119
119
  * @param options.store - `RecordSourceSelectorProxy`.
120
120
  */
121
121
  export declare function connectionDeleteEdgeUpdater({ parentId, connectionName, nodeId, store, }: ConnectionDeleteEdgeUpdaterOptions): void;
122
122
  /**
123
- * Copia os campos escalares de um objeto JS para um `RecordProxy`.
123
+ * Copies the scalar fields of a JS object to a `RecordProxy`.
124
124
  *
125
- * Ignora campos que são objetos ou arrays (linked records / linked
126
- * record lists) — esses precisam ser manipulados com
125
+ * Ignores fields that are objects or arrays (linked records / linked
126
+ * record lists) — those must be handled with
127
127
  * `setLinkedRecord`/`setLinkedRecords`.
128
128
  *
129
- * @param options.object - Objeto JS de origem.
130
- * @param options.proxy - `RecordProxy` de destino.
129
+ * @param options.object - Source JS object.
130
+ * @param options.proxy - Destination `RecordProxy`.
131
131
  */
132
132
  export declare function copyObjScalarsToProxy({ object, proxy }: CopyObjScalarsToProxyOptions): void;
133
133
  export {};
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Barrel público do módulo `relayArgsInterface`.
2
+ * Public barrel for the `relayArgsInterface` module.
3
3
  *
4
- * Reexporta os tipos `RelayArgsInterface` (config aceita por
5
- * `CreateRelayEnvironment`) e `Sink` (interface do Observable Relay).
4
+ * Re-exports the `RelayArgsInterface` type (config accepted by
5
+ * `CreateRelayEnvironment`) and `Sink` (the Relay Observable interface).
6
6
  */
7
7
  export * from './relayArgsInterface';