RonRonRon
RonRonRon
TTwenty
Created by RonRonRon on 5/22/2025 in #❓︱help
Programmatically create a workspace before its creation
Just curious if someone has a list of the mutations that are called when user onboards the system: 1. signUp 2. activateWorkspace 3. updateOneWorkspaceMember
24 replies
TTwenty
Created by RonRonRon on 5/22/2025 in #❓︱help
Programmatically create a workspace before its creation
Yes, in my use case, after deploying the crm - my application will automatically create a new workspace without human intervention - unattended, with specific input that I give it - workspace name, users, etc
24 replies
TTwenty
Created by RonRonRon on 5/22/2025 in #❓︱help
Programmatically create a workspace before its creation
Sorry I am not familiar with the term "tests seeder" but I am pretty sure I am not looking for it. I am looking to automate the creation of new crm env in my company with predefined goal / users / settings and this is an essential part of it
24 replies
TTwenty
Created by RonRonRon on 5/22/2025 in #❓︱help
Programmatically create a workspace before its creation
Yep, the idea is not to use the UI, I am trying to automate it upon deployment - unattended, programmatically through a script that will take the workspace name, image, email, pass etc. and do the work without anyone clicking buttons 🐒
24 replies
TTwenty
Created by RonRonRon on 5/22/2025 in #❓︱help
Programmatically create a workspace before its creation
Got it, that's why I thought a script for self-hosted use casewhere people want to configure the first workspace unattended. Not sure if someone else has this use case? maybe someone in the past and could share their script :20:
24 replies
TTwenty
Created by RonRonRon on 5/22/2025 in #❓︱help
Programmatically create a workspace before its creation
Did someone here develop a script to do it from the command line? Do you think that it will be a good contribution to the community?
24 replies
TTwenty
Created by RonRonRon on 5/22/2025 in #❓︱help
Programmatically create a workspace before its creation
Great, so if I want to write a script automating this operation (without calling the graphql) I can directly call the signInUpService.signUpOnNewWorkspace command.
24 replies
TTwenty
Created by RonRonRon on 5/22/2025 in #❓︱help
Programmatically create a workspace before its creation
Thank you @prastoin , maybe I should rephrase it to "Signup and create workspace programmatically for self-hosted env". The idea is that we want to automate the signup of a self-hosted setup and create the workspace programmatically once setup is done.
24 replies
TTwenty
Created by RonRonRon on 5/22/2025 in #❓︱help
Programmatically create a workspace before its creation
const fetch = require('node-fetch');

const SERVER_IP = ...
const WORKSPACE_NAME = ...
const EMAIL = ...
const PASSWORD = ...
const FIRST_NAME = ...
const LAST_NAME = ...

// SignUp ...
// GetAuthTokensFromLoginToken ...
// UpdateOneWorkspaceMember
// etc.
const fetch = require('node-fetch');

const SERVER_IP = ...
const WORKSPACE_NAME = ...
const EMAIL = ...
const PASSWORD = ...
const FIRST_NAME = ...
const LAST_NAME = ...

// SignUp ...
// GetAuthTokensFromLoginToken ...
// UpdateOneWorkspaceMember
// etc.
24 replies
TTwenty
Created by RonRonRon on 5/22/2025 in #❓︱help
Programmatically create a workspace before its creation
Maybe something like this?
24 replies