-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99790f5
commit 551615c
Showing
10 changed files
with
212 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/resources/agency/cassettes/interfaces/create-cassette-options.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export interface CreateCassetteOptions { | ||
name: string | ||
project: string | ||
handle: string | ||
} | ||
|
||
export interface SerializedCreateCassetteOptions { | ||
name: string | ||
project: string | ||
handle: string | ||
} |
9 changes: 9 additions & 0 deletions
9
src/resources/agency/cassettes/interfaces/duplicate-cassette-options.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface DuplicateCassetteOptions { | ||
handle: string | ||
name: string | ||
} | ||
|
||
export interface SerializedDuplicateCassetteOptions { | ||
handle: string | ||
name: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
export * from './cassette.interface' | ||
export * from './create-cassette-options.interface' | ||
export * from './duplicate-cassette-options.interface' | ||
export * from './update-cassette-options.interface' |
7 changes: 7 additions & 0 deletions
7
src/resources/agency/cassettes/interfaces/update-cassette-options.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export interface UpdateCassetteOptions { | ||
name: string | ||
} | ||
|
||
export interface SerializedUpdateCassetteOptions { | ||
name: string | ||
} |
12 changes: 12 additions & 0 deletions
12
src/resources/agency/cassettes/serializers/create-cassette-options.serializer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { | ||
CreateCassetteOptions, | ||
SerializedCreateCassetteOptions, | ||
} from '../interfaces' | ||
|
||
export const serializeCreateCassetteOptions = ( | ||
options: CreateCassetteOptions | ||
): SerializedCreateCassetteOptions => ({ | ||
handle: options.handle, | ||
name: options.name, | ||
project: options.project, | ||
}) |
11 changes: 11 additions & 0 deletions
11
src/resources/agency/cassettes/serializers/duplicate-cassette-options.serializer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { | ||
DuplicateCassetteOptions, | ||
SerializedDuplicateCassetteOptions, | ||
} from '../interfaces' | ||
|
||
export const serializeDuplicateCassetteOptions = ( | ||
options: DuplicateCassetteOptions | ||
): SerializedDuplicateCassetteOptions => ({ | ||
handle: options.handle, | ||
name: options.name, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
export * from './cassette.serializer' | ||
export * from './create-cassette-options.serializer' | ||
export * from './duplicate-cassette-options.serializer' | ||
export * from './update-cassette-options.serializer' |
10 changes: 10 additions & 0 deletions
10
src/resources/agency/cassettes/serializers/update-cassette-options.serializer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { | ||
SerializedUpdateCassetteOptions, | ||
UpdateCassetteOptions, | ||
} from '../interfaces' | ||
|
||
export const serializeUpdateCassetteOptions = ( | ||
options: UpdateCassetteOptions | ||
): SerializedUpdateCassetteOptions => ({ | ||
name: options.name, | ||
}) |