Skip to content

Commit fcea970

Browse files
committed
Rename "Code-Native" to "Code-First"
1 parent 05bb674 commit fcea970

9 files changed

Lines changed: 44 additions & 39 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h1>@prismatic-io/spectral</h1>
44
</div>
55

6-
This monorepo contains packages to build custom Prismatic connectors and code-native integrations using TypeScript.
6+
This monorepo contains packages to build custom Prismatic connectors and code-first integrations using TypeScript.
77

88
## Building Locally
99

@@ -13,13 +13,13 @@ Run `bun install` to install node dependencies, `mise run build` to build all wo
1313

1414
## What is Prismatic?
1515

16-
Prismatic is the leading embedded iPaaS, enabling B2B SaaS teams to ship product integrations faster and with less dev time. The only embedded iPaaS that empowers both developers and non-developers with tools for the complete integration lifecycle, Prismatic includes low-code and code-native building options, deployment and management tooling, and self-serve customer tools.
16+
Prismatic is the leading embedded iPaaS, enabling B2B SaaS teams to ship product integrations faster and with less dev time. The only embedded iPaaS that empowers both developers and non-developers with tools for the complete integration lifecycle, Prismatic includes low-code and code-first building options, deployment and management tooling, and self-serve customer tools.
1717

1818
Prismatic's unparalleled versatility lets teams deliver any integration from simple to complex in one powerful platform. SaaS companies worldwide, from startups to Fortune 500s, trust Prismatic to help connect their products to the other products their customers use.
1919

2020
With Prismatic, you can:
2121

22-
- Build [integrations](https://prismatic.io/docs/integrations/) using our [intuitive low-code designer](https://prismatic.io/docs/integrations/low-code-integration-designer/) or [code-native](https://prismatic.io/docs/integrations/code-native/) approach in your preferred IDE
22+
- Build [integrations](https://prismatic.io/docs/integrations/) using our [intuitive low-code designer](https://prismatic.io/docs/integrations/low-code-integration-designer/) or [code-first](https://prismatic.io/docs/integrations/code-native/) approach in your preferred IDE
2323
- Leverage pre-built [connectors](https://prismatic.io/docs/components/) for common integration tasks, or develop custom connectors using our TypeScript SDK
2424
- Embed a native [integration marketplace](https://prismatic.io/docs/embed/) in your product for customer self-service
2525
- Configure and deploy customer-specific integration instances with powerful configuration tools

packages/eslint-config-spectral/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ Note that you do not need to install the plugin packages as peer dependencies as
2626

2727
## What is Prismatic?
2828

29-
Prismatic is the leading embedded iPaaS, enabling B2B SaaS teams to ship product integrations faster and with less dev time. The only embedded iPaaS that empowers both developers and non-developers with tools for the complete integration lifecycle, Prismatic includes low-code and code-native building options, deployment and management tooling, and self-serve customer tools.
29+
Prismatic is the leading embedded iPaaS, enabling B2B SaaS teams to ship product integrations faster and with less dev time. The only embedded iPaaS that empowers both developers and non-developers with tools for the complete integration lifecycle, Prismatic includes low-code and code-first building options, deployment and management tooling, and self-serve customer tools.
3030

3131
Prismatic's unparalleled versatility lets teams deliver any integration from simple to complex in one powerful platform. SaaS companies worldwide, from startups to Fortune 500s, trust Prismatic to help connect their products to the other products their customers use.
3232

3333
With Prismatic, you can:
3434

35-
- Build [integrations](https://prismatic.io/docs/integrations/) using our [intuitive low-code designer](https://prismatic.io/docs/integrations/low-code-integration-designer/) or [code-native](https://prismatic.io/docs/integrations/code-native/) approach in your preferred IDE
35+
- Build [integrations](https://prismatic.io/docs/integrations/) using our [intuitive low-code designer](https://prismatic.io/docs/integrations/low-code-integration-designer/) or [code-first](https://prismatic.io/docs/integrations/code-native/) approach in your preferred IDE
3636
- Leverage pre-built [connectors](https://prismatic.io/docs/components/) for common integration tasks, or develop custom connectors using our TypeScript SDK
3737
- Embed a native [integration marketplace](https://prismatic.io/docs/embed/) in your product for customer self-service
3838
- Configure and deploy customer-specific integration instances with powerful configuration tools

packages/eslint-config-spectral/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "@prismatic-io/eslint-config-spectral",
33
"version": "2.2.0",
4-
"description": "ESLint config for building Prismatic connectors and code-native integrations",
5-
"keywords": ["prismatic", "eslint"],
4+
"description": "ESLint config for building Prismatic connectors and code-first integrations",
5+
"keywords": [
6+
"prismatic",
7+
"eslint"
8+
],
69
"main": "dist/index.js",
710
"types": "dist/index.d.ts",
811
"homepage": "https://prismatic.io",
@@ -23,7 +26,9 @@
2326
"build": "bun run clean && tsc",
2427
"prepack": "bun run build"
2528
},
26-
"files": ["dist"],
29+
"files": [
30+
"dist"
31+
],
2732
"dependencies": {
2833
"@typescript-eslint/eslint-plugin": "^8.65.0",
2934
"@typescript-eslint/parser": "^8.65.0",

packages/spectral/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h1>@prismatic-io/spectral</h1>
44
</div>
55

6-
This repository contains code for Prismatic's TypeScript library, `spectral`, which is used to build custom Prismatic connectors and code-native integrations.
6+
This repository contains code for Prismatic's TypeScript library, `spectral`, which is used to build custom Prismatic connectors and code-first integrations.
77

88
## Using Spectral
99

@@ -17,13 +17,13 @@ Please see our [documentation](https://prismatic.io/docs/custom-connectors/) on
1717

1818
## What is Prismatic?
1919

20-
Prismatic is the leading embedded iPaaS, enabling B2B SaaS teams to ship product integrations faster and with less dev time. The only embedded iPaaS that empowers both developers and non-developers with tools for the complete integration lifecycle, Prismatic includes low-code and code-native building options, deployment and management tooling, and self-serve customer tools.
20+
Prismatic is the leading embedded iPaaS, enabling B2B SaaS teams to ship product integrations faster and with less dev time. The only embedded iPaaS that empowers both developers and non-developers with tools for the complete integration lifecycle, Prismatic includes low-code and code-first building options, deployment and management tooling, and self-serve customer tools.
2121

2222
Prismatic's unparalleled versatility lets teams deliver any integration from simple to complex in one powerful platform. SaaS companies worldwide, from startups to Fortune 500s, trust Prismatic to help connect their products to the other products their customers use.
2323

2424
With Prismatic, you can:
2525

26-
- Build [integrations](https://prismatic.io/docs/integrations/) using our [intuitive low-code designer](https://prismatic.io/docs/integrations/low-code-integration-designer/) or [code-native](https://prismatic.io/docs/integrations/code-native/) approach in your preferred IDE
26+
- Build [integrations](https://prismatic.io/docs/integrations/) using our [intuitive low-code designer](https://prismatic.io/docs/integrations/low-code-integration-designer/) or [code-first](https://prismatic.io/docs/integrations/code-native/) approach in your preferred IDE
2727
- Leverage pre-built [connectors](https://prismatic.io/docs/components/) for common integration tasks, or develop custom connectors using our TypeScript SDK
2828
- Embed a native [integration marketplace](https://prismatic.io/docs/embed/) in your product for customer self-service
2929
- Configure and deploy customer-specific integration instances with powerful configuration tools

packages/spectral/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@prismatic-io/spectral",
33
"version": "10.26.0",
4-
"description": "Utility library for building Prismatic connectors and code-native integrations",
4+
"description": "Utility library for building Prismatic connectors and code-first integrations",
55
"keywords": [
66
"prismatic"
77
],

packages/spectral/src/index.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This module contains functions to help custom component and code-native
2+
* This module contains functions to help custom component and code-first
33
* integration authors create inputs, actions, components, and integrations
44
* that can run on the Prismatic platform.
55
*/
@@ -41,12 +41,12 @@ import type { PollingTriggerDefinition } from "./types/PollingTriggerDefinition"
4141
import type { Exact } from "./types/utils";
4242

4343
/**
44-
* This function creates a code-native integration object that can be
44+
* This function creates a code-first integration object that can be
4545
* imported into Prismatic.
4646
*
4747
* @param definition An IntegrationDefinition type object.
4848
* @returns This function returns an integration object that has the shape the Prismatic API expects.
49-
* @see {@link https://prismatic.io/docs/integrations/code-native/ | Code-Native Integrations}
49+
* @see {@link https://prismatic.io/docs/integrations/code-native/ | Code-First Integrations}
5050
* @example
5151
* import { integration } from "@prismatic-io/spectral";
5252
* import flows from "./flows";
@@ -108,11 +108,11 @@ export const integration = <
108108
};
109109

110110
/**
111-
* This function creates a flow object for use in code-native integrations.
111+
* This function creates a flow object for use in code-first integrations.
112112
*
113113
* @param definition A Flow type object.
114114
* @returns This function returns a flow object that has the shape the Prismatic API expects.
115-
* @see {@link https://prismatic.io/docs/integrations/code-native/flows/ | Code-Native Flows}
115+
* @see {@link https://prismatic.io/docs/integrations/code-native/flows/ | Code-First Flows}
116116
* @example
117117
* // A webhook-triggered flow
118118
* import { flow } from "@prismatic-io/spectral";
@@ -203,7 +203,7 @@ export const flow = <
203203
*
204204
* @typeParam TItem - the item type each batched execution receives.
205205
* @typeParam TPaginationState - the pagination state round-tripped via `payload.paginationState`.
206-
* @see {@link https://prismatic.io/docs/integrations/code-native/flows/ | Code-Native Flows}
206+
* @see {@link https://prismatic.io/docs/integrations/code-native/flows/ | Code-First Flows}
207207
* @example
208208
* import { flow, batchFlowTrigger } from "@prismatic-io/spectral";
209209
*
@@ -234,12 +234,12 @@ export const batchFlowTrigger = <
234234
): BatchTrigger<TItem, TPaginationState> => trigger;
235235

236236
/**
237-
* This function creates a config wizard page object for use in code-native
237+
* This function creates a config wizard page object for use in code-first
238238
* integrations.
239239
*
240240
* @param definition A Config Page type object.
241241
* @returns This function returns a config page object that has the shape the Prismatic API expects.
242-
* @see {@link https://prismatic.io/docs/integrations/code-native/config-wizard/ | Code-Native Config Wizard}
242+
* @see {@link https://prismatic.io/docs/integrations/code-native/config-wizard/ | Code-First Config Wizard}
243243
* @example
244244
* import { configPage, connectionConfigVar, configVar } from "@prismatic-io/spectral";
245245
*
@@ -273,7 +273,7 @@ export const batchFlowTrigger = <
273273
export const configPage = <T extends ConfigPage = ConfigPage>(definition: T): T => definition;
274274

275275
/**
276-
* This function creates a config variable object for code-native integrations.
276+
* This function creates a config variable object for code-first integrations.
277277
*
278278
* @param definition A Config Var type object.
279279
* @returns This function returns a standard config var object that has the shape the Prismatic API expects.
@@ -326,12 +326,12 @@ export const configPage = <T extends ConfigPage = ConfigPage>(definition: T): T
326326
export const configVar = <T extends StandardConfigVar>(definition: T): T => definition;
327327

328328
/**
329-
* This function creates a data source-backed config variable for code-native
329+
* This function creates a data source-backed config variable for code-first
330330
* integrations.
331331
*
332332
* @param definition A Data Source Config Var type object.
333333
* @returns This function returns a data source config var object that has the shape the Prismatic API expects.
334-
* @see {@link https://prismatic.io/docs/integrations/code-native/config-wizard/#data-sources-is-code-native-integrations | Data Sources in Code-Native}
334+
* @see {@link https://prismatic.io/docs/integrations/code-native/config-wizard/#data-sources-is-code-native-integrations | Data Sources in Code-First}
335335
* @example
336336
* import { dataSourceConfigVar } from "@prismatic-io/spectral";
337337
*
@@ -350,12 +350,12 @@ export const dataSourceConfigVar = <TDataSourceConfigVar extends DataSourceConfi
350350
): TDataSourceConfigVar => definition;
351351

352352
/**
353-
* This function creates a connection config variable for code-native
353+
* This function creates a connection config variable for code-first
354354
* integrations.
355355
*
356356
* @param definition A Connection Config Var type object.
357357
* @returns This function returns a connection config var object that has the shape the Prismatic API expects.
358-
* @see {@link https://prismatic.io/docs/integrations/code-native/config-wizard/#connections-in-code-native-integrations | Connections in Code-Native}
358+
* @see {@link https://prismatic.io/docs/integrations/code-native/config-wizard/#connections-in-code-native-integrations | Connections in Code-First}
359359
* @example
360360
* import { connectionConfigVar } from "@prismatic-io/spectral";
361361
* import { acmeConnection } from "./connections";
@@ -388,7 +388,7 @@ export const connectionConfigVar = <T extends ConnectionConfigVar = ConnectionCo
388388
): T => definition;
389389

390390
/**
391-
* This function creates a customer-activated connection for code-native
391+
* This function creates a customer-activated connection for code-first
392392
* integrations. Customer-activated connections are configured by end-users
393393
* and can be shared across multiple integrations.
394394
*
@@ -409,7 +409,7 @@ export const customerActivatedConnection = <T extends { stableKey: string }>(
409409
};
410410

411411
/**
412-
* This function creates an org-activated connection for code-native
412+
* This function creates an org-activated connection for code-first
413413
* integrations. Org-activated connections are configured once by the
414414
* organization and shared across all customer instances.
415415
*
@@ -430,8 +430,8 @@ export const organizationActivatedConnection = <T extends { stableKey: string }>
430430
};
431431

432432
/**
433-
* Generate a manifest of components that this code-native integration relies on.
434-
* Component manifests allow your code-native integration to reference actions,
433+
* Generate a manifest of components that this code-first integration relies on.
434+
* Component manifests allow your code-first integration to reference actions,
435435
* triggers, connections, and data sources from published Prismatic components.
436436
*
437437
* @param definition A Component Manifest type object.
@@ -848,7 +848,7 @@ export const dynamicObjectInput = <
848848
});
849849

850850
/**
851-
* This function creates a connection that can be used by a code-native integration
851+
* This function creates a connection that can be used by a code-first integration
852852
* or custom component. Connections define the fields (API keys, tokens, etc.) needed
853853
* to authenticate with a third-party service.
854854
*
@@ -885,7 +885,7 @@ export const connection = <T extends DefaultConnectionDefinition>(
885885
): T => definition;
886886

887887
/**
888-
* This function creates an on-prem connection for a code-native integration or custom component.
888+
* This function creates an on-prem connection for a code-first integration or custom component.
889889
* On-prem connections include `host` and `port` fields that are automatically overridden by the
890890
* on-prem agent with local tunnel endpoints.
891891
*
@@ -934,7 +934,7 @@ export const onPremConnection = <T extends OnPremConnectionDefinition>(
934934
): T => definition;
935935

936936
/**
937-
* This function creates an OAuth 2.0 connection for a code-native integration or custom component.
937+
* This function creates an OAuth 2.0 connection for a code-first integration or custom component.
938938
* Supports both Authorization Code and Client Credentials grant types.
939939
*
940940
* @param definition An OAuth2ConnectionDefinition object that describes the type of a connection for a custom component action or trigger, and information on how it should be displayed in the Prismatic WebApp.
@@ -996,7 +996,7 @@ export const oauth2Connection = <T extends OAuth2ConnectionDefinition>(
996996
): T => definition;
997997

998998
/**
999-
* Register multiple component manifests for a code-native integration.
999+
* Register multiple component manifests for a code-first integration.
10001000
* Each manifest declares a published Prismatic component and the specific
10011001
* actions, triggers, connections, and data sources your integration uses.
10021002
*

packages/spectral/src/serverTypes/perform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export const createCNIPollingPerform = <
267267
context: cniContext,
268268
invokeAction: async () => {
269269
throw new Error(
270-
"invokeAction is not available for code-native polling triggers. " +
270+
"invokeAction is not available for code-first polling triggers. " +
271271
"Use getState/setState to manage polling state directly in your onTrigger function.",
272272
);
273273
},

packages/spectral/src/testing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async function invokeFlowTest(
139139
}
140140

141141
/**
142-
* Creates basic component action mocks based on a code-native integration's
142+
* Creates basic component action mocks based on a code-first integration's
143143
* component registry. Each action mock returns the action's `examplePayload`
144144
* by default. Pass overrides in the second argument to customize specific mocks.
145145
*
@@ -531,7 +531,7 @@ const createConfigVars = <TConfigVarValues extends TestConfigVarValues>(
531531
};
532532

533533
/**
534-
* Invokes a code-native integration flow within a test harness. Runs the
534+
* Invokes a code-first integration flow within a test harness. Runs the
535535
* flow's `onTrigger` (if defined) followed by `onExecution`, and returns
536536
* the execution result. Accepts optional config variables, context overrides,
537537
* and a custom trigger payload.

packages/spectral/src/types/IntegrationDefinition.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import type { TriggerPerformFunction } from "./TriggerPerformFunction";
2020
import type { TriggerResult } from "./TriggerResult";
2121

2222
/**
23-
* Defines attributes of a code-native integration. See
23+
* Defines attributes of a code-first integration. See
2424
* https://prismatic.io/docs/integrations/code-native/
2525
*/
2626
export type IntegrationDefinition<
@@ -87,7 +87,7 @@ export type IntegrationDefinition<
8787
*/
8888
instanceProfile?: string;
8989
/**
90-
* A list of components this code-native integration uses. See
90+
* A list of components this code-first integration uses. See
9191
* https://prismatic.io/docs/integrations/code-native/existing-components/
9292
*/
9393
componentRegistry?: ComponentRegistry;
@@ -399,7 +399,7 @@ interface PollingFlow<
399399
>;
400400
}
401401

402-
/** Defines attributes of a flow of a code-native integration. */
402+
/** Defines attributes of a flow of a code-first integration. */
403403
export type Flow<
404404
TInputs extends Inputs,
405405
TActionInputs extends Inputs,

0 commit comments

Comments
 (0)